Date: Tue, 1 Feb 2005 23:41:37 -0800 From: "Mitch (Bitblock)" <mitch@bitblock.com> To: freebsd-isp@freebsd.org Subject: Delete/rm/unlink traversal order and chflags - does it make sense to reverse it? Message-ID: <courier.42008431.0000C0E7@bigass1.bitblock.com>
next in thread | raw e-mail | index | archive | help
Not sure if this is the right place, but thought perhaps the people who share my problem would at least be here ;-) I've been thinking of ways to save users from themselves. Using: chflags sunlnk .ImportantUserData is great for saving themselves from Samba - Samba doesn't descend a directory to delete the contents if there is not access to delete the directory! The shell though, will happily delete the contents of a folder, leaving the skeleton intact. Is there a way to change the shell / unlink function behavior? This is out of my league in C coding, but on the surface, the samba way seems to make more sense. If a "rm -rf /" was stopped before it got started would it be a bad thing? Maybe the key would just be the rm program itself? Just thought I'd see if anyone had comment or a better way. Thanks! m/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?courier.42008431.0000C0E7>