Tagged Questions
3
votes
2answers
66 views
How can I backup a directory to NTFS while preserving Unix file attributes?
I want to make a backup of my home directory to an NTFS partition (an unfortunate limitation). However, when I last tried using just cp, the attributes (owner, etc) went away. How can I make a backup ...
3
votes
2answers
98 views
How to set permissions in /sys/ permanent?
I'm starting X as a user and need to set my keyboard brightness in /sys/class/leds/asus\:\:kbd_backlight/brightness. The /sys/ directory gets recreated after reboot, so the permissions will reset too. ...
2
votes
2answers
63 views
Taking file ownership when file and directory is readable/writable
I got some files in directory:
drwxrws-wt 2 me mygroup 4,0K 10.1. 12:34 .
-rw-r----- 1 someone mygroup 10G 10.1. 11:22 someonesfile
me and someone are regular users without supplementary ...
1
vote
2answers
74 views
Cannot access any files Manjaro Linux
I cannot open any files on my Manjaro Linux laptop. I really can't remember why it happened but I restarted my computer and now I dont have read/write access to any folder or file even though I've ...
1
vote
2answers
92 views
How to make a path world-readable?
To make some item X world-readable, it is not enough for it to have the right permissions: each component of the absolute path leading to it must also have the right permissions. (My understanding, ...
4
votes
1answer
139 views
Is it possible to disable file permissions on a ext3 or ext4 file-system?
Is it possible to disable file permissions on an ext3/4 file-system?
Just wondering if it's possible to completely disable or ignore file permissions on a ext3 or ext4 file system. Perhaps a mounting ...
2
votes
2answers
110 views
cannot touch -m a writable file
Can someone explain why I get permission denied when running touch -m on this file even though it is group writable and I can write to the file fine.
~/test1-> id
uid=1000(plyons) gid=1000(plyons) ...
2
votes
3answers
79 views
Circumvent permissions of filesystem on an external drive
Suppose that I have only non-root access on a desktop Linux machine.
I want to work with an external, pluggable storage device (hdd, flash drive or memory card) with an ext{2,3,4} file system.
Since ...
1
vote
1answer
89 views
Cannot execute files on another partition
On my system I have three partitions: one is shared between W7 and Linux Mint (NTFS), and the other two are OS-specific.
In my home directory I have created a symbolic link to another directory on ...
0
votes
1answer
118 views
The relationship between execute permission on a directory and its inode structure
My question deals with the relationship between the read and execute bits on a directory. I'm going to give my assumptions, first, all according to my current knowledge, then ask my question in bold ...
0
votes
1answer
109 views
File permission mechanism in Unix like systems
Can some one please explain with a an example the file permission mechanism in Linux and other Unix like systems ? What are the nine bits for ? Why do we have a group id for a user as well as for a ...
1
vote
4answers
339 views
Automatically change file permission upon write to a folder
How can I create directories so:
/data
/data/user1
/data/user2
and make sure that whenever root writes inside them, depending on which directory it writes to, different owners are set.
Example:
...
3
votes
2answers
116 views
I want to modify root files while also being able to create non-root files in a single text editor session.
Catch 22: If I open my text editor without using sudo, I don't have permission to save any changes. If I open it with root privileges, any files I create are owned by root. I want to be able to ...
1
vote
1answer
151 views
Correct owner, group and permissions when mounting an image file
Suppose I have an image home.img of a home partition of another linux machine (B). On that machine there is a users userB and there is a special group, groupB. Consider for example a file fileB in the ...
2
votes
1answer
386 views
Permissions corrupted?
A few weeks ago, I installed Linux Mint on a USB flash drive. I used it to copy the contents of my HFS+ external hard drive to my Windows drive on my desktop. Then, I formatted the external drive to ...
2
votes
2answers
353 views
Is it possible to enable execution of files from a cifs mount in bash?
I have a remote mount with cifs and it would seem there is no way to have bash execute scripts from that mount, is it possible to enable such execution?
ls -lh ini*
-rwxrwxr-x 1 alan 500 222 ...
1
vote
1answer
81 views
Why are directories created with permissions 2070 and files with 060 in a directory with setgid bit?
I have the following directory:
$ ll -d neptune
drwxrws---+ 5 beamin psych 4096 Mar 7 16:18 neptune
$ getfacl neptune
# file: neptune
# owner: beamin
# group: psych
# flags: -s-
user::rwx
...
3
votes
3answers
698 views
In Mac OS X Snow Leopard, how can one file's permissions be matched to another?
I need to make the permissions of a file exactly match the permissions of another file in OS X 10.6.
I don't see 'getfacl' or 'setfacl' as suggested in some other posts for Linux. And, it doesn't ...
1
vote
2answers
1k views
Mount device with r/w access to specific user
How can I mount some device with read-write access to specific user?
0
votes
2answers
411 views
How to detect and stop user from deleting particular file on Linux?
Is it possible to monitor user actions on the file system and prevent him from performing particular actions? Can inotify only monitor actions on the file system? What about fanotify? There's very ...
5
votes
1answer
373 views
Immutable bit on AIX?
Under Linux I can:
chattr +i SOMEFILE
so that even root can't modify the SOMEFILE. Are there any similar solutions for AIX?
0
votes
1answer
335 views
trouble with irssi and cifs
I'm having trouble getting irssi, the irc client, to write to a mounted cifs share. I have the uid, and gid set to my user as well as setting the permissions on the share to being very permissive. ...
4
votes
2answers
1k views
ISO file readonly?
I have an ISO file and I mount it under /mnt/isofile.
Then I copied this file to another folder.
But the contents are read only and belonged to root.
I tried to use chmod and chown.
But it prompts ...
2
votes
1answer
3k views
Changing user and group ID system wide (including file system attributes)?
(this question possibly related to Linux: simulating/masking user ownership upon mount of 'external' partitions? - Stack Overflow)
I typically use Ubuntu (currently 11.04) as my desktop OS; let's say ...
3
votes
4answers
1k views
mount ramfs as user
My fstab entry:
none /home/jreinhart/ramdisk ramfs defaults,user 0 0
The directory before mounting:
drwxrwxr-x 2 jreinhart jreinhart 4096 Oct 17 11:31 ramdisk
The directory after ...
2
votes
2answers
314 views
A command to check file access permission for another user
I need to know how to check the effective file access permissions for a given user, but it takes long to do this manually starting from / up to the target file or directory, checking group, ...etc.
3
votes
2answers
619 views
recursively change file permission but not directories?
I was doing a mass recursive change of permissions of some files that I had migrated to a unix system. I changed them to ug+rw, but then I found that I could not traverse subdirectories. I looked at ...
4
votes
2answers
1k views
Permission denied (even as root) on a mounted ISO image with Furius ISO Mount
I mounted a ISO image with Furius ISO Mount. I cd to the mounted directory and tried to copy a file with
sudo cp file /dir
but cp writes error message
cp: cannot stat `file': Permission denied
...
2
votes
1answer
55 views
Creating Directories: with Permissions
I need to create a directory that is RW to all users using chown. what arguments should I pass chown to get a file with those permissions? Or maybe there is an even better way to do it......
3
votes
2answers
365 views
How does the Unix file privilege system differ from that of Windows?
Related question: How does the Linux file system/organization differ from Windows?
I am somewhat familiar with how privileges work when it comes to files and directories - each entry has an owner and ...
8
votes
2answers
267 views
How is file ownership affected across different systems?
As I understand Unix file systems, any file on a unix system must belong to a group and a user of the said system. A file cannot belong to a group or user that does not exist on the system.
From that ...
2
votes
1answer
390 views
immutable-like flag for perms
Is there any chattr flag that would allow me to lock a file's unix permissons, and not change them without resetting the flag? The file itself should still be modifiable, I just want to prevent ... ...
3
votes
1answer
1k views
what does the “a” in chattr +ia do?
what does the a in chattr +ia <filename> do? and why would you add the a in combination with the i? note: I know the i is for immutable
