chmod after installworld
peepstein at canada.com
Tue Oct 28 06:23:23 PST 2003
On October 28, 2003 5:56 am, Jim wrote:
>New to FreeBSD. Version 4.8 stable. Fresh install.
>Why am I allowed to chmod 000 a file after installation (ex: /usr/bin/rsh,
>or /usr/bin/yppasswd), but cannot following a cvsup and installworld? I get
>an "Operation not allowed" message after updating.
On my system, those files have the immutable bit set. "man chflags" will tell
you how to get rid of that flag so you can chmod the file. It's probably a
good idea to set the flag back once you're done.
I don't know why the behaviour is different between a fresh install and an
installworld, though. Now I'm interested to find out. Hopefully someone will
Hopefully this is your problem.
>A listing of the file shows "-r-sr-xr-x root wheel" as the permissions and
>ownership. The "s" is common to all the files I cannot change (I believe
>this indicates the suid bit (which is why I'm trying to chmod this in the
>first place)), but chmod 0000 produces the same results (not allowed).
>I am logged in as root on the console, am not running ACL, yellow pages, or
>anything else for authentication beyond master.passwd at this stage (fresh
>I have looked at the man page for chmod, and searched google, with no
>This message was scanned and certified Virus Free by Alexssa | HNet.
>freebsd-questions at freebsd.org mailing list
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
"There are people who cheat on their spouse but not at cards, and vice versa,
and both and neither. Reputation is not necessarily portable from one
situation to another, and it's not easily expressed."
--Clay Shirkey. (http://www.shirky.com/writings/group_enemy.html)
"It has been said that man is a rational animal. All my life I have
been searching for evidence which could support this."
"The American empire is ideological, not territorial. We are the most
ideological people in the world, and we are so united in our view that we
don't understand there can be other views."
--Lt. Gen. William Odom, ret. (Former Director of NSA).
More information about the freebsd-questions