chmod after installworld

2003-10-28 Thread Jim
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.

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  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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: chmod after installworld

2003-10-28 Thread (rp)
On Tue, Oct 28, 2003 at 07:56:43AM -0600, 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.
 
 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  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
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

First use chflags noschg /usr/bin/rsh. Btw you can check flags via
ls -alo /usr/bin/rsh.


RP
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: chmod after installworld

2003-10-28 Thread Edward Epstein
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  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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 

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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: chmod after installworld

2003-10-28 Thread Jim
 -Original Message-
 From: Edward Epstein [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 8:23 AM
 To: Jim; [EMAIL PROTECTED]
 Subject: Re: chmod after installworld


 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


chflags noschg did the trick - many thanks to rp and edward for their
assistance.

 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  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
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

 --

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


 ___
 This message was scanned and certified Virus Free by Alexssa | HNet.
 www.alexssa.net
 www.hnet.net


___
This message was scanned and certified Virus Free by Alexssa | HNet.
www.alexssa.net
www.hnet.net
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]