Results 1 to 5 of 5
I was a big DA... i edited the ssh file first so i would disable root login, and change ports and everything...
however, i forgot to add myself to the ...
- 06-13-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
locked myself out of su, sudo, and the sudoers file! HELP! Please.
I was a big DA... i edited the ssh file first so i would disable root login, and change ports and everything...
however, i forgot to add myself to the sudoers file..
so now i cant use su or sudo commands AT ALL.
I would REALLY love for me not to have to spend an entire 4+ hours working on getting it up and running again (installed cpanel and other stuff which took so long.)
can anyone help me? or do i have to reload the entire OS? i would love to not have to do so if i could...
- 06-13-2011 #2Just Joined!
- Join Date
- Jun 2011
- Posts
- 2
ok so im a DA, but i fixed my own issue....
just had to go into WHM as root, and add my username to the wheel group, and now i have access to su and sudo, now i can make sure i am part of sudoers file.
- 06-16-2011 #3Just Joined!
- Join Date
- Jun 2011
- Posts
- 18
You cant star session with the admin account in GDM???
- 07-09-2011 #4Just Joined!
- Join Date
- Jan 2009
- Posts
- 47
if you use grub, which you should over lilo, you could have hit 'e' on boot. that owuld take you to the edit mode. at the end of the kernel you can put 'single' or '1' and then press 'x' to boot. that would boot you iunto single user mode which forces you as root. you can then change your sudoers permission. restart and viola yo uare fixed.
- 07-09-2011 #5
Another possibility would have been a LiveCD to edit your /etc/group file or to chroot into your installed system for adding you to the wheel group.
Just for reference.Refining Linux Advent calendar: “24 Outstanding ZSH Gems”


Reply With Quote
