6
votes
1answer
136 views

monitor file permission changes

How can I figure out which process is changing the permissions of a file? on a Debian server, I have the problem that something is changing the permissions on /dev/null every day at 6:20 (since 3 ...
0
votes
1answer
42 views

Debian file's permissions for secondary's group of user

I am installing a proftpd server on a debian dedicated server, In order to be able to update some website files in this folder : /var/www/website I have added a new user : my-ftp-user This user's ...
1
vote
1answer
176 views

Give read-only access to specific folders?

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users ...
1
vote
1answer
64 views

Only write permission for a directory doesn't allow to rename (move) files inside?

In fact, I would like to ask more general question -- "what does write permission for a directory allow you to do exactly?" -- but let's approach it with a concrete example. It is a long question, if ...
11
votes
1answer
426 views

How is file owner and group remembered for an external drive?

I formatted an external hard drive with an ext4 partition and subsequently mounted it. So that I could use the new partition, I did: sudo chown me:me /mount/directory to change the file owner and ...
0
votes
3answers
70 views

“Other” permissions on files

To my understanding, the last three character of file permission printed by ls command is about other user's file permission. If the other user"s" have separate file permissions to this file, what ...
2
votes
1answer
131 views

How can I get write access to my usb drives?

I have trouble writing to external drives. They are monuted automatically in Nautilus, but I can not copy anything there ('Paste' and 'create Folder' are just greyed out). Does Anyone have ideas what ...
0
votes
1answer
99 views

How to set automatically permission at automount without mask

I store my data on a NTFS parition to share it with my Windows. I use the dmask,fmask option in my fstab entry to avoid rwx default permissions to everyone, for coherence, security, and also because ...
0
votes
1answer
2k views

Granting all users access to mounted CIFS shares

I'm trying to set up a debian server that will run several network-based services. These services need access to an external network drive to store their data. For security reasons, I have set up each ...
0
votes
3answers
274 views

noexec on /tmp and /var/tmp directory

Our client servers are running old version of jboss (Jboss 4.0) which has lots of known vulnerabilities. Result is that the server is hacked and we are seeing some unknown executables running from ...
1
vote
1answer
43 views

Accessing other folder

I'm having difficulty with groups and permissions. I have user A part of group A that manages a folder F. A second user B part of group B must access folder F and its content. I added user B to ...
2
votes
1answer
92 views

Process overwrite access restriction

I want to run a program so that it can only create new files and not overwrite existing ones. Does something like this exist? $ fsaccess --can read,write --not overwrite --command bash -c 'echo ...
5
votes
2answers
1k views

Why are 666 the default file creation permissions?

As I've found out, when using umask, the highest permissions you can give to files are 666. Which is done by umask 0000. That's because of the default file creation permissions, which appear to be 666 ...
2
votes
1answer
175 views

what are the different ways to set file permissions etc on gnu/linux

On Unix a long time back I learned about chmod to set permissions and to allow programs to gain privileges. I have recently discovered extra commands on GNU/Linux: chattr, setfacl, setcap. Are there ...
0
votes
3answers
331 views

How to make accessible folder/file to other user

How is it possible to make a folder under $HOME accessible to other users? I thought that's the case why we have softlinks but apparently I am missing some bits here. Can someone please shed a light ...
6
votes
3answers
212 views

Under what scenarios would I want to set a SUID bit?

I'm struggling to wrap my mind around the concept of SUID bits and why they're would be useful. For example, let's say I have a program: -rwsr-xr-x 1 root root 12364 Jan 12 2013 ...
1
vote
2answers
98 views

FS permission scenario

How can I achieve this files & folders permissions scenario: Consider these folder: Folder A: 640 root apache /var/www/A/ Folder www: 640 root apache /var/www/ and this linux user: id user1: ...
0
votes
1answer
153 views

Amazon EC2: Giving Permanent Permission To A Sepecific Directory In Amazon Linux AMI

I have a Symfony2 project that needs full read write permissions to three directories: app/cache, app/logs, and few other directories which are used for uploading. The problem is everytime I push an ...
13
votes
3answers
2k views

How does the sticky bit work?

SUID The sticky bit applied to executable programs flagging the system to keep an image of the program in memory after the program finished running. But I don't know that what it's stored in ...
1
vote
1answer
1k views

Filesystem suddenly read-only?

I've been storing some files on a MicroSD formatted to ext4 that I connect via USB. I tried to move a directory in it to an external hard drive, and I got mv: error reading ...
2
votes
2answers
139 views

Having Virtualbox disk images on /opt

Background After a recent HDD crash I did a clean install of Linux Mint 15 on a new disk. Seeing the potential problems with having backups of my documents and eclipse workspace, I realized that a ...
4
votes
2answers
223 views

Permissions by path instead of file mode bits

I often find that the unix way of handling file permissions is powerful, particularly when combined with ACLs, but rather difficult to handle. Setting file modes, group ownership and extended ...
3
votes
2answers
412 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 ...
4
votes
2answers
673 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. ...
3
votes
2answers
1k 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
344 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
386 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, ...
5
votes
1answer
860 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
388 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
135 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 ...
20
votes
2answers
3k views

How do I remove a file with no permissions?

A hacker has dropped a file in my tmp dir that is causing issues. Nothing malicious except creating GB's of error_log entries because their script is failing. However, the file they are using to ...
1
vote
1answer
163 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
323 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
319 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 ...
2
votes
4answers
1k 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
143 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
561 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
498 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
902 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
117 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
1k 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 ...
2
votes
2answers
8k views

Mount device with r/w access to specific user

How can I mount some device with read-write access to specific user?
2
votes
2answers
735 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
2answers
731 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
512 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. ...
5
votes
2answers
3k 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
7k 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 ...
4
votes
4answers
2k 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
928 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.
6
votes
2answers
2k 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 ...