Results 1 to 7 of 7

Thread: Edit /etc/sudoers

  1. #1
    Join Date
    Jan 2009
    Location
    South Carolina
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Question Edit /etc/sudoers

    Hi, I typed: sudo gedit /etc/sudoers and it still says "Read Only" Any ideas? Thanks!

  2. #2
    Join Date
    May 2005
    Location
    US
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Edit /etc/sudoers

    The proper command is
    Code:
    sudo visudo
    not
    Code:
    sudo gedit /etc/sudoers
    By the way, not a big deal with Gedit in particular, but it's a good habit to get into to use gksudo with graphical applications instead of sudo; e.g.,
    Code:
    gksu gedit /etc/sudoers

  3. #3
    Join Date
    Jan 2009
    Location
    South Carolina
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Edit /etc/sudoers

    Quote Originally Posted by aysiu View Post
    The proper command is
    Code:
    sudo visudo
    not
    Code:
    sudo gedit /etc/sudoers
    By the way, not a big deal with Gedit in particular, but it's a good habit to get into to use gksudo with graphical applications instead of sudo; e.g.,
    Code:
    gksu gedit /etc/sudoers
    Ok. Thanks!

  4. #4
    Join Date
    Sep 2006
    Beans
    3,165
    Distro
    Ubuntu Karmic Koala (testing)

  5. #5
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Edit /etc/sudoers

    Why wouldn't you just add the user to the admin group?
    Code:
    sudo adduser jpkotta admin
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

  6. #6
    Join Date
    Jan 2009
    Location
    South Carolina
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Edit /etc/sudoers

    Quote Originally Posted by jpkotta View Post
    Why wouldn't you just add the user to the admin group?
    Code:
    sudo adduser jpkotta admin
    The user is in the admin group. But the other responses got it. Thanks!

  7. #7
    Join Date
    Jan 2009
    Location
    South Carolina
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Edit /etc/sudoers

    Quote Originally Posted by aysiu View Post
    The proper command is
    Code:
    sudo visudo
    not
    Code:
    sudo gedit /etc/sudoers
    By the way, not a big deal with Gedit in particular, but it's a good habit to get into to use gksudo with graphical applications instead of sudo; e.g.,
    Code:
    gksu gedit /etc/sudoers
    This got it. Thanks!

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
  •