On 20 Jun 00, at 14:56, Niall O Broin wrote:
> god:x:0:0:root:/root:/bin/bash
>> instead of
>> root:x:0:0:root:/root:/bin/bash
>>> you can just do
>> su god
That won't work as su will try to run a shell with the correct uid and
crap out with a failure to retrieve authentication info.
Reboot into single user or sudo. Trust me. I had to figure this out
myself a few months ago. sudo will only work if you havent killed the
line completely from /etc/passwd. You can do sudo -u #0 vi /etc/passwd.
The reason sudo works is that it uses the current user's password and just
runs a command while su tries to use the target user's info which is in a
screwed state.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!