[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Deleting owned files...
Andreas Schwab wrote:
> Stephen Usher <Stephen.Usher@earth.ox.ac.uk> writes:
> |> Under BSD the symatics are:-
> |> drwxrwxrwx Anyone can delete, create or rename files.
> |> drwxr-xr-x Only owner of directory can do the above.
> |> drwxrwtrwx Anyone can create or delete their own files, no-one
> |> else (other than root) can do so.
This is not true. The owner of the directory is also permitted to delete
entries in a directory where the sticky bit is set.
> |> The important thing is the directory's protection, not the file's, which
> |> determines who can do what to files in the directory, other than for
> |> chown'ing. To chown a file you need to be the owner or root.
> Under BSD you cannot chown unless you are root, even the owner (of the
> file) cannot. Otherwise you could fill up other peoples quotas :-)
Or you just make an sh suid and give it to root (asuming there is no
special mechanism deleting the suid-bit when chowning).
Frank Bartels | Fax/UUCP: + 49 89 5469593 | MiNT is
firstname.lastname@example.org | Login: nuucp Index: /pub/ls-lR.nasim.gz | Now TOS!