View previous topic :: View next topic |
Author |
Message |
Herodot Guru
Joined: 29 Jul 2002 Posts: 429 Location: Professor Xavier's school for gifted youngsters
|
Posted: Mon May 05, 2003 11:53 am Post subject: root password / access gone after update |
|
|
Hi,
I have a small intranet webserver on my LAN. I only connect to it with ssh, as it's placed somewhere akward and doesn't have a monitor. Yesterday I did an "emerge -u world", and today I can no longer log in with ssh. It's still running fine, and the emerge is over. I don't know exactly what got updated, but it was only small things and minor updates, or I wouldn't have done it all at once.
What can I do? _________________ Excelsior! |
|
Back to top |
|
|
mglauche Retired Dev
Joined: 25 Apr 2002 Posts: 564 Location: Germany
|
Posted: Mon May 05, 2003 1:00 pm Post subject: |
|
|
try to login as a normal user (you do have some non-root accounts, do u ? , then try su - (if that user belongs to group wheel)
if nothing helps, use the folowing procedure to reset the root password (oh, u need to attach a monitor first
reboot the machine, and in add "init=/bin/sh" to your command line in grub or lilo
then use "mount / -o remount,rw"
then "passwd root" - set the new password, maybe run "sync" to flush the filesystem
then remount the / read-only again with "mount / -o remount,ro" and reboot your computer (just hit reset after you did remount it ro) |
|
Back to top |
|
|
jlg Guru
Joined: 31 May 2002 Posts: 360 Location: Montreal, CANADA
|
Posted: Mon May 05, 2003 1:38 pm Post subject: |
|
|
my guess is you updated ssh and that by default the new sshd_config disables root to login from ssh |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|