On 14/02/12 20:55, Anders Johansson wrote:
Hi I want all files created or copied to a directory become rw for all group members.
I have a directory e.g. chmod g+rws /home/dropbox
gives me: d-wxrws--x 2 root suseusers 4096 Feb 14 20:16 dropbox The sgid bit sets the ownership of the created files to group that owns the
On Tuesday 14 February 2012 20:31:01 lynn wrote: directory, not the permissions
but I want it: -rw-rw---- 1 steve6 suseusers 0 Feb 14 20:23 hola setfacl -d -m g::rw /home/dropbox
Anders
OMG That _is_ magic. I'm going to look into the acl stuff. Despite the fear of hijacking my own thread, I'll drop a hint to another thread I have open where I'm comparing nfs rw speeds to folders like this one, and to your own home folder. The latter is faster than the former. I think that the group rw has something to do with this. But that's the other thread. Can I ask a few more things on this one? I'm getting rwx's I've never seen before. Here, two users from the suseusers group have echoed a file to the folder: hh3:/home/dropbox # ls -la total 24 d-wxrws--x+ 2 root suseusers 4096 Feb 14 23:00 . drwxr-xr-x 5 root root 4096 Feb 14 19:55 .. --w-r----- 1 lynn2 suseusers 2 Feb 14 22:56 h --w-rw---- 1 steve6 suseusers 6 Feb 14 23:06 hello --w-rw---- 1 lynn2 suseusers 30 Feb 14 23:01 hola Can I assume: 1. setfacl applies only to newly copied or created files 2. The file h was created before the setfacl 3. The setfacl command was issued at 11pm 4. root created the dropbox folder at 7:55 pm 5. There is no way of knowing when the chmod g+rws command was issued 6. The permissions work but are not as they are supposed to be due to the chmod in 5 7. The owner of hola is irrelevant as to its rw permissions 8. steve6 cannot edit h Questions: how would I chmod h to take on --w-rw---- Thanks for your help and patience. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org