Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
Re: [opensuse] File delete permissions.
On 06/08/2017 02:45 PM, Per Jessen wrote:
Carlos E. R. wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hi,

I'm user 'cer'. To avoid deleting by mistake some files, I changed
their ownership to another user:

cer@Isengard:~/Fusion/Videos/Crossing Jordan/Temporada 1> l p*mpeg
- -rw-r--r-- 1 cer-g root 0 Jun 8 19:50 p.mpeg
- -rw-r--r-- 1 cer-g root 0 Jun 8 19:50 p2.mpeg
- -rw-r--r-- 1 cer-g root 0 Jun 8 19:50 p3.mpeg
- -rw-r--r-- 1 cer-g root 0 Jun 8 19:50 p4.mpeg
cer@Isengard:~/Fusion/Videos/Crossing Jordan/Temporada 1> rm p.mpeg
rm: remove write-protected regular empty file 'p.mpeg'? n
cer@Isengard:~/Fusion/Videos/Crossing Jordan/Temporada 1>


See? 'rm' doubts and asks.
However, 'mc' doesn't ask and goes ahead, it happily deletes a file
that is not mine.

I guess you own the directory.


I agree with Per, if you own the directory and have write perms to it you can delete any file there.

--
Ken Schneider
SuSe since Version 5.2, June 1998

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >