Re: [gentoo-user] First Install - Help Setting Root Password -- SOLVED!!!

2005-05-09 Thread Drew Tomlinson
On 5/9/2005 4:17 AM Neil Bothwick wrote:
On Sun, 08 May 2005 17:53:26 -0700, Drew Tomlinson wrote:
 

OK, I've done some more reading and found that the reason I couldn't
use 'su' as myself was because /bin/su didn't have the setuid bit set.
So in all my fooling around, I have file ownership and modes screwed up 
from the default.  What user:group should own all (or most) of the
files after a install?  What files should be setuid?  Is there a list 
somewhere?  Or will some incantation of  'emerge' fix all of this for
me?
   

# qpkg -f /bin/su
sys-apps/shadow
So emerge --oneshot shadow should restore things to their defaults.
 

Setting the setuid bit on /bin/su and /bin/login fixed my login 
problems.  I'm tried this suggestion and it worked.   However I don't 
quite understand exactly what the oneshot option does.  The man page says:

Emerge  as normal, but do not add the packages to the world profile for 
later updating.

So it rebuilds it but we don't add it to the world profile because it's 
part of the base system and we wouldn't want it upgraded unless we 
rebuilt everything else?  I'm brand spankin' new to both Linux and 
Gentoo but I have experience with FreeBSD.  In FreeBSD, I know one 
doesn't want to get his kernel and world out of sync.  Is the idea 
behind oneshot similar to this?

A big THANK YOU to all for helping this noob get up to speed.
Drew
--
Visit The Alchemist's Warehouse
Magic Tricks, DVDs, Videos, Books,  More!
http://www.alchemistswarehouse.com
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] First Install - Help Setting Root Password -- SOLVED!!!

2005-05-09 Thread Neil Bothwick
On Mon, 09 May 2005 10:20:23 -0700, Drew Tomlinson wrote:

 So emerge --oneshot shadow should restore things to their defaults.

 Setting the setuid bit on /bin/su and /bin/login fixed my login 
 problems.  I'm tried this suggestion and it worked.   However I don't 
 quite understand exactly what the oneshot option does.  The man page
 says:
 
 Emerge  as normal, but do not add the packages to the world profile for 
 later updating.

That's it. When you emerge a package, the package is added to your world
file, but any dependencies that are emerged are not. So the world file
contains only those packages that you explicitly want, not their
dependencies. Whenever I re-emerge anything I always use --oneshot, on
the basis that if it belongs in world, it is already there and if it
doesn't, I don't want to spoil things by adding it now.

shadow is a clear example of this, as it is a package you would never
install manually (in fact it is part of system).


-- 
Neil Bothwick

Groucho Borg: That's the silliest thing I ever assimilated...


pgpxyNwHCWADn.pgp
Description: PGP signature