05-13-04 06:40 PM
Dan <dan@nospam.com> wrote:
> Why can't I rename this file under my normal login?
> $ pwd
> /var/tmp
> $ ls -ld
> drwxrwxrwt 3 bin bin 83456 May 13 11:51 .
> $ ls -l ar.exp
> -rw-rw-rw- 1 root system 2150739 May 12 23:22 ar.exp
> $ mv ar.exp art.exp
> mv: 0653-401 Cannot rename ar.exp to art.exp:
> Operation not permitted.
Note the 't' bit on the directory. From the manpage (FreeBSD) :
1000 (the sticky bit) When set on a directory, unprivileged
users can delete and rename only those files in the direc_
tory that are owned by them, regardless of the permissions
on the directory. Under FreeBSD, the sticky bit is ignored
for executable files and may only be set for directories
(see sticky(8)).
AIX is strange, but in this respect unix-compatible.
> TIA,
> Dan
--
Peter Håkanson
IPSec Sverige ( At Gothenburg Riverside )
Sorry about my e-mail address, but i'm trying to keep spam out,
remove "icke-reklam" if you feel for mailing me. Thanx.
[ Post a follow-up to this message ]
|