Find the answer to your Linux question:
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 ...
  1. #1
    Just 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...

  2. #2
    Just 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.

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    18
    You cant star session with the admin account in GDM???

  4. #4
    Just 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.

  5. #5
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •