m***@yahoo.com
2006-01-11 00:50:57 UTC
I cannot understand the following situation:
I am trying to understand permisions.
File AAA created in /usr/tmp by user test:
drwxrwxrwt 2 sys sys 10240 Jan 10 15:59 /usr/tmp
-rw-rw-r-- 1 test group 6 Jan 10 16:14 /usr/tmp/AAA
User test2 can not delete it, see below :
/u/test2$ rm /usr/tmp/AAA
rm: /usr/tmp/AAA not removed: Permission denied (error 13)
User test2 belong to the same group as test, see lines from passwd file
below :
test:x:262:50::/u/test:/bin/ksh
test2:x:264:50::/u/test2:/bin/ksh
test2 can write to the file, I thought test2 should be able to delete
it. Why is that?
the man chmod clearly says regarding directories with sticky bit set:
who can delete :
anyone with write permissions to both file and directory
Your clarifications are very welcome.
I am trying to understand permisions.
File AAA created in /usr/tmp by user test:
drwxrwxrwt 2 sys sys 10240 Jan 10 15:59 /usr/tmp
-rw-rw-r-- 1 test group 6 Jan 10 16:14 /usr/tmp/AAA
User test2 can not delete it, see below :
/u/test2$ rm /usr/tmp/AAA
rm: /usr/tmp/AAA not removed: Permission denied (error 13)
User test2 belong to the same group as test, see lines from passwd file
below :
test:x:262:50::/u/test:/bin/ksh
test2:x:264:50::/u/test2:/bin/ksh
test2 can write to the file, I thought test2 should be able to delete
it. Why is that?
the man chmod clearly says regarding directories with sticky bit set:
who can delete :
anyone with write permissions to both file and directory
Your clarifications are very welcome.