On Wednesday 15 February 2012 00:08:39 lynn wrote:
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
Yes.
2. The file h was created before the setfacl
Probably
3. The setfacl command was issued at 11pm
Well, the last change to the directory was at 11pm. That could have been the setfacl, or it could have been that a file in the directory was last created at that time. When you create a new file in the directory, the directory gets updated and its timestamp changes
4. root created the dropbox folder at 7:55 pm
7:55pm was the last time the /home directory was changed. If creating /home/dropbox was the last thing you did there, then yes
5. There is no way of knowing when the chmod g+rws command was issued
correct
6. The permissions work but are not as they are supposed to be due to the chmod in 5
Yes, it looks like the user default acl is wrong because the directory doesn't have read rights for the user. You should do chmod u+r /home/dropbox setfacl -d -m u::rwx /home/dropbox unless of course you really want the permissions to be the way they are, and that users can't read their own files, only write to them
7. The owner of hola is irrelevant as to its rw permissions
correct
8. steve6 cannot edit h
correct
Questions: how would I chmod h to take on --w-rw----
You actually want it to be write-only for the user? If so, it should be "chmod 260 h" Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org