Results 1 to 7 of 7

Thread: user not in sudoer file

  1. #1
    Join Date
    Nov 2009
    Beans
    4

    user not in sudoer file

    I an a relative linux newbie who just installed ubuntu 9.10 workstation (I have enstalled around 4 times on viurtual machines but generally do nothing with Ubuntu other than get Apache, MySql and php going) and was able to do most of want I wanted with the initial user (user1) using sudo.

    It was painful however to work with Nautilis and Gedit, because everything i tried to do said I did not have the permissions.

    I then added my user (the initial user) to group root. Nautilis and Gedit then allowed me to easily edit files (I only used to verify I COULD edit files - I did NOTactually edit any)

    I then rebooted my computer and since then I cannot so anything with sudo. I get a message "user1 is not in the sudoers file". If I do groups user1 I can see user1 is listed as a member of user1 and root. However, Nautilis and Gedit respond with no permission to everything again.

    I also cannot su to root because it says invalid password (I had not originally set a password for root but it will not accept leaving password blank and now it will not let me sudo to create a password).

    Can anyone tell me what I need to do to make user1 work with sudo again?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: user not in sudoer file

    Boot in recovery mode and add your user to the admin group:
    http://psychocats.net/ubuntu/fixsudo

    Don't add your user to the root group. Use sudo/gksu to run an application as root.
    community/RootSudo

    Store your site in your home directory:
    community/ApacheMySQLPHP#Virtual%20Hosts

    Also check the Sever Guide:
    https://help.ubuntu.com/8.04/serverguide/C/index.html

    Learn about file permissions:
    community/FilePermissions

  3. #3
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: user not in sudoer file

    What permissions do you have user1 set as? If you go into system>administration>users and groups and see if you have the account set to give yourself these privileges.

    Also, if you put "sudo" in a terminal and follow it with a command, you're saying it doesn't work, correct?

  4. #4
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: user not in sudoer file

    "Don't add your user to the root group. Use sudo/gksu to run an application as root.
    community/RootSudo"

    Absolutely

  5. #5
    Join Date
    Nov 2009
    Beans
    4

    Re: user not in sudoer file

    That is correct that is I type sudo followed by any command, I get the message that the user is not in the sudoer file. But without sudo and without the ability to su to root or log in to as root user (no password), I don't know how to reverse the mistake of having added user1 to grooup root.

    Any help on how I can get back to taking user1 out of group root and having sudo work again will be greatly appreciated.

  6. #6
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: user not in sudoer file

    Quote Originally Posted by bg2 View Post
    That is correct that is I type sudo followed by any command, I get the message that the user is not in the sudoer file. But without sudo and without the ability to su to root or log in to as root user (no password), I don't know how to reverse the mistake of having added user1 to grooup root.

    Any help on how I can get back to taking user1 out of group root and having sudo work again will be greatly appreciated.
    Once again:

    Boot in recovery mode and add your user to the admin group:
    http://psychocats.net/ubuntu/fixsudo

  7. #7
    Join Date
    Nov 2009
    Beans
    4

    Re: user not in sudoer file

    I followed the instructions of the first link you sent and everything went ok.

    Thanks.

Tags for this Thread

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
  •