Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2003 06:23:20 -0800
From:      Edward Epstein <peepstein@canada.com>
To:        Jim <jhorvath@frabill.com>, freebsd-questions@freebsd.org
Subject:   Re: chmod after installworld
Message-ID:  <200310280623.20081.peepstein@canada.com>
In-Reply-To: <FCEALFLMBJHCOMLJCGNEKENKDFAA.jhorvath@frabill.com>
References:  <FCEALFLMBJHCOMLJCGNEKENKDFAA.jhorvath@frabill.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
explain.

Hopefully this is your problem.

-Ed

>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
>install).
>
>I have looked at the man page for chmod, and searched google, with no
>results.
>
>Please help.
>
>
>
>
>
>_______________________________________________________________________
>This message was scanned and certified Virus Free by Alexssa | HNet.
>www.alexssa.net
>www.hnet.net
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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."
--Bertrand Russell.

"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).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310280623.20081.peepstein>