Delete/rm/unlink traversal order and chflags - does it make sense to reverse it?
From: Mitch (Bitblock) (mitch_at_bitblock.com)
Date: 02/02/05
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: freebsd-isp@freebsd.org Date: Tue, 1 Feb 2005 23:41:37 -0800
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/
_______________________________________________
freebsd-isp@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-isp
To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]