The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] can't protect files from deletion v5,v6, or v7
@ 2017-05-25  0:23 Mark Longridge
  2017-05-25  0:28 ` Christian Groessler
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Longridge @ 2017-05-25  0:23 UTC (permalink / raw)


Ok, I just did an experiment with the rm command and the results surprised me.

On Unix v5 logged in as root I created a small test file then did
chmod 444 on it. Unfortunately it appears that mere users can still rm
the file and also directories are not safe from the rmdir command
(even directories set to mode 444).

This seems to be the case for v6 and v7 as well.

To be fair rm will prompt the user with: test1: 0100444 mode
but the user only has to type y and hit enter and the file is toast.

Is there no way to completely protect files from being deleted?

Mark


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-25  1:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25  0:23 [TUHS] can't protect files from deletion v5,v6, or v7 Mark Longridge
2017-05-25  0:28 ` Christian Groessler
2017-05-25  0:48 ` Dan Cross
2017-05-25  0:57   ` Ron Natalie
2017-05-25  1:36 ` Dave Horsfall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).