Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: cant sudo on 12.04 lts

  1. #1
    Join Date
    Mar 2012
    Beans
    16

    Exclamation cant sudo on 12.04 lts

    I already tried the recovery mode fix and it did not do anything to fix this!!!!!!!



    ok so um i get this error. as i said recovery mode does not work and even logging in as admin does not give me the permissions needed to do this. how do i fix and why didn't recovery mode work????

    also luna is best pony
    Last edited by donwolfani; March 5th, 2013 at 05:09 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    INDY
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: cant sudo on 12.04 lts

    Is the account you are trying to use the first user account created at installation?
    If not any subsequint user needs to be added to the sudo group to have privledges.

    A link about how things work with root and sudo in Ubuntu, it is not recomended to use "su" to access a root command line.
    better to use "sudo -i" See Link:
    https://help.ubuntu.com/community/RootSudo

    http://www.psychocats.net/ubuntu/fixsudo
    Last edited by arpanaut; March 5th, 2013 at 08:13 AM. Reason: added fixsudo
    Castles Made of Sand,
    Fall in the Sea,
    Eventually!

  3. #3
    Join Date
    Mar 2012
    Beans
    16

    Re: cant sudo on 12.04 lts

    i have tried with both of my accounts. both the one i created and the admin one. both created at install.

    i have also tried the recovery mode trick to fix this but still nothing

  4. #4
    Join Date
    Apr 2012
    Beans
    5,461

    Re: cant sudo on 12.04 lts

    Quote Originally Posted by donwolfani View Post
    i have also tried the recovery mode trick to fix this but still nothing
    It's hard to help unless you post exactly what you tried and any error messages that resulted

  5. #5
    Join Date
    Dec 2008
    Location
    Indiana, United States
    Beans
    734

    Re: cant sudo on 12.04 lts

    Is this account the first account created after install? If it's a secondary account you need to add your account to /etc/sudoers
    Whoever came up with the phrase "There is no such thing as a stupid question" obviously never had the internet.

  6. #6
    Join Date
    Nov 2010
    Location
    Spain
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: cant sudo on 12.04 lts

    @steeldriver is right. With the current data about your problem ... reinstall. If you don't have superuser privileges, you cannot edit the sudoers file.
    One vision, one purpose.

  7. #7
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: cant sudo on 12.04 lts

    Check your group membership:
    Code:
    groups
    If sudo is not in the list, try
    Code:
    pkexec adduser donwolfani sudo
    Last edited by schragge; March 5th, 2013 at 09:13 PM.

  8. #8
    Join Date
    Mar 2012
    Beans
    16

    Re: cant sudo on 12.04 lts

    just tried pkexec adduser donwolfani sudo and it still wont allow sudo.

    im a out to try reinstall bit firsy i need to ask about something. if i restore a backup of my entire home folder will this cause this problem again after the reinstall? and if so what file is causing it so i know what not to allow in the backup.

    i have to use my home folder as it.is to lengthy a process moving every individual config file for.the.stuff i use to be able do it without messing up one program or another.

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: cant sudo on 12.04 lts

    Quote Originally Posted by donwolfani View Post
    just tried pkexec adduser donwolfani sudo and it still wont allow sudo.
    But pkexec itself worked? I mean, is donwolfani now member of the sudo group? What does the groups command show? If pkexec didn't work, what was the error message? I guess it was clear, but just to remove any misunderstandings: pkexec works as a poor man's replacement for sudo, you must enter it as is, without sudo.

  10. #10
    Join Date
    Mar 2012
    Beans
    16

    Re: cant sudo on 12.04 lts

    yes pkexec worked im part of the group but it still will not let me sudo after. pkexec worked fine but.then when i tried to sudo anything it gave me the original error all over again.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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