View Single Post
  #9   (View Single Post)  
Old 18th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
Join Date: Apr 2008
Location: New Zealand
Posts: 2,201

Originally Posted by dk_netsvil View Post
Ok, you've probably got chflags - I believe the syntax to set the immutable bit for chflags is:

chflags nouchg

or chflags nouunlink
uchg is user immutable, not system immutable /var/empty has the system immutable flag set (schg), like the error message indicated:

override r-xr-xr-x  root/wheel schg for tmp/temproot/var/empty? y
As has already been mentioned, you can use chflags(1) to remove the schg flags.
Please note that if your system's securelevel is set then schg (and sappnd) can not be removed for obvious reasons.
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote