Mailinglist Archive: opensuse (3729 mails)
| < Previous | Next > |
Re: [SLE] Does anyone experience this problem for root account?
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: 25 Jun 2003 00:51:53 +0200
- Message-id: <1056495113.1980.134.camel@xxxxxxxxxxxxxxxxx>
On Wed, 2003-06-25 at 00:45, Robert C. Paulsen Jr. wrote:
> 1. At LILO prompt, use
> linux init=/bin/sh
> then remove the "x" from root's line in /etc/passwd.
That's not a very good idea, it confuses the system. su won't repect it
and will still require the password from /etc/shadow (at least in 8.2,
in previous versions the system will stop using shadow completely for
that user and will put the new password in the world readable
/etc/passwd), while the console login will still log you in without a
password even after setting it with passwd unless you restore the 'x'
afterwards
It's much easier to work with /etc/shadow, just delete the contents of
the password field.
> 1. At LILO prompt, use
> linux init=/bin/sh
> then remove the "x" from root's line in /etc/passwd.
That's not a very good idea, it confuses the system. su won't repect it
and will still require the password from /etc/shadow (at least in 8.2,
in previous versions the system will stop using shadow completely for
that user and will put the new password in the world readable
/etc/passwd), while the console login will still log you in without a
password even after setting it with passwd unless you restore the 'x'
afterwards
It's much easier to work with /etc/shadow, just delete the contents of
the password field.
| < Previous | Next > |