Re: root password
On Wed, 29 Dec 1999 13:19:34 +0900, Daegyu Kim wrote:
> Is there any way to change the root password on my netwinder? The
> problem is that I forgot my root password.
The default root password on netwinders is 'vnc' (without the ' quotes).
If you want to change it, try to start linux with the following command
line:
linux init=/bin/bash
This will drop you in a very bare system with a root shell. Now mount the
root filesystem read-write, make a backup of the password file and edit
/etc/passwd:
mount -n -oremount,rw /
cp /etc/passwd /etc/passwd-backup
vi /etc/passwd
Edit the root account in such a way that the password entry is empty, like:
root::0:0:super user:/:/bin/bash
Save the file and exit vi. Sync the disk caches and mount the filesystem
read-only:
sync ; sync ; sync ; mount -n -oremount,ro /
Reboot the machine by using Ctrl-Alt-Del. The machine should come up in
the normal way and you should be able to log in as root without password
(immediately set a new password).
If you happen to use shadow passwords, also backup /etc/shadow, remove
root from /etc/shadow and edit /etc/passwd like I described above.
Hope this helps,
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2785859 Fax: +31-15-2781843 Email J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
Reply to: