Mailinglist Archive: opensuse (1264 mails)

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


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.

Yes. Is that the reason?


--
Cheers / Saludos,

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)

< Previous Next >