[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

removing a file



Hi,

> To test this, I copied `rm' to my home and made a chmod 2755:
> -rwxr-sr-x   1 benni    mail        29018 Apr 27 18:34 rm
> 
> In my spool dir, there is a lockfile, produced by elm:
> -r--------   1 benni    wheel       31322 Apr 27 17:45 benni.lock
> 
> And the permissions of the directory are:
> drwxrwxr-x   2 root     mail          320 Apr 27 18:41 /usr/spool/mail
> 
> So `rm' should be allowed to remove the file...
> With MiNT 1.09 it works, with 1.10 it doesn't!
> Why???

In MiNT 1.10, you can only remove a file in a directory iff:

(1) you have write permission to the directory,
(2) you own the file.

MiNT 1.09, just like standard Unix, only checks (1). Condition (2) is
the cause of your problem, since the owner of the file (which is the
real uid of the program) does not match the effective uid.

Thierry.