![]() |
root account locked because of stupid move - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: root account locked because of stupid move (/thread-2552.html) Pages: 1 2 |
root account locked because of stupid move - prale - 02-25-2008 02:42 AM 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. RE: root account locked because of stupid move - joximu - 02-25-2008 02:52 AM Hi First: this is absolutely no ispcp question - rather SmallTalk. Normally in rescue mode, you're no on your filesystem. This means you have to mount your / (root) Partition and then make the changes there. Then umount and reboot and then you're fine. /J RE: root account locked because of stupid move - prale - 02-25-2008 02:58 AM I'm sorry that I must ask this, but can you simply explain how to mount that partition? In the meantime I'll google some tutorials etc... RE: root account locked because of stupid move - Cube - 02-25-2008 03:03 AM Are you using Virtuosso? There the filesystem of your server is in a directory like /repair. RE: root account locked because of stupid move - prale - 02-25-2008 03:06 AM No just 1dedicated machine only. I googled: mount /dev/hda1 /mnt vi /mnt/etc/shadow and I'm gonna try it, I hope /mnt/etc/ssh/ is also editable since I don't need to change the root passwd RE: root account locked because of stupid move - prale - 02-25-2008 03:14 AM It's found the right file after I mounted hda3. Hope this is the correct one. RE: root account locked because of stupid move - prale - 02-25-2008 03:27 AM Problem solved, thanks guys! This solution is better than reinstalling everything, and reconfiguring all ispcp accounts ![]() RE: root account locked because of stupid move - joximu - 02-25-2008 03:28 AM prale Wrote:It's found the right file after I mounted hda3. well - seems so - there won't be several /etc on the same hard disk. It depends on where and how linux is installed. read something about the linux basics then you're fine. /J RE: root account locked because of stupid move - prale - 02-25-2008 03:35 AM Yes I know alot about php5 OOP, mysql and windows. This is my first dedicated linux machine, and I also want to know everything about it. So I guess i'll keep on reading available tutorials. Thanx again for all help. RE: root account locked because of stupid move - rbtux - 02-25-2008 03:57 AM for future problems like that. It's better to remount the root-partition read-only before rebooting... |