Mailinglist Archive: opensuse (1264 mails)

< Previous Next >
[opensuse] File delete permissions.
  • From: "Carlos E. R." <robin.listas@xxxxxxxxxxxxxx>
  • Date: Thu, 8 Jun 2017 19:58:07 +0200 (CEST)
  • Message-id: <nycvar.YFH.7.76.1706081952280.30027@Grypbagne.inyvabe>
-----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 thought that the 'w' permission was needed to delete a file, but no. Is there some way I can negate user "cer" permission to delete a file? No, not sticky, it doesn't work.

- -- Cheers

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlk5kDcACgkQtTMYHG2NR9Vq1QCggsSKNnySeBs+qBDnrMJ2duOD
KKYAn1Dj+vi6dWVFjKaS6iwNgolheymw
=0zPI
-----END PGP SIGNATURE-----

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

< Previous Next >