[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/passwd->shell

Hash: SHA1

>>>>> "Ivan" == \"Ivan R \" <Ivan> writes:

>> Just make sure that you have some way of doing stuff as root
>> (e.g. sudo), and that you don't kill single mode.  (Never tried this,
>> but I don't see why you couldn't do this.)

Ivan> ok for sudo, but what do you mean by "don t kill single mode"?

I think that if you boot into single mode (e.g. type "linux single" at
the LILO prompt), you'll drop into whatever shell is defined for root.
(Again, I've never tried changing root's shell.)  If you set root's
shell to /bin/false, you won't be able to use single mode, so you may
want to give yourself another back door, in case you need to fix a
messed up configuration file that's preventing your system from starting
up properly.  (But then, I think that "linux init=/bin/sh" will always
work, so it may be fine to give root a dummy shell.  Again, I've never
tried this, so you're on your own.)

- -- 
Hubert Chan <hackerhue@geek.com> - http://www.geocities.com/hubertchan/
PGP/GnuPG key: 1024D/71FDA37F
Fingerprint: 6CC5 822D 2E55 494C 81DD  6F2C 6518 54DF 71FD A37F
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org


Reply to: