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

Re: Danger! An user can delete root's files!!!

permissions on the directory determine who can delete files within it.  if
/misc is rwxrwxrwx then any user can delete /misc/test.  what
permissions/ownership are on the parent directory?

if you chmod +t a directory, then the file's permissions will come into
play on who can delete the file.  see /tmp for an example of that.


On Wed, 12 Dec 2001, fabio adamo inwind it wrote:

> Hi,
> I use a Red Hat Linux 7.2 with all the upgrade found on the RedHat website installed. I also have update the KDE to the version 2.2.2.
> During the installation I set a mountpoint /master on hda8 but at the first reboot I changed the /etc/fstab to mount the /misc on that partition. Now if root create a file in /misc A NORMAL USER CAN DELETE IT!! This happen only in the /misc directory.
> An user can delete a file like this:
> -rw-r--r--    1 root     root            0 dic 12 17:53 test
> Bye
> Fabio Adamo
> See the attachments.

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