Current time: 11-26-2024, 08:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
root account locked because of stupid move
Author Message
prale Offline
Junior Member
*

Posts: 92
Joined: Feb 2008
Reputation: 1
Post: #1
root account locked because of stupid move
Hello I accidently dissabled my root login.

# vi /etc/ssh/sshd_config
Port 222
PermitRootLogin no

And I don't have another user than root :S

The only thing what I can do is boot in resque mode, then user root gets a random password and ssh port is at 22 again.

The problem is that I can't save changes to sshd_conf any more, because after a reboot is seems like the file before I moved into recovery mode is back again (port 222 for ssh).

Also the command adduser works, but I can't login with it.
I'm reconsidering a complete reinstall of debian an ispcp, but hopefully someone knows the trick to fix it.
(This post was last modified: 02-25-2008 02:44 AM by prale.)
02-25-2008 02:42 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
root account locked because of stupid move - prale - 02-25-2008 02:42 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)