Results 1 to 3 of 3

Thread: NO sudo password for certain commands

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    VA
    Beans
    29
    Distro
    Ubuntu 10.04 Lucid Lynx

    NO sudo password for certain commands

    hey, I am having some trouble getting the syntax right for editing my visudo file. What I am looking to do is edit the visudo file so that when I use the command sudo mount I am not required to enter a password. I am doing this so that a stat up script I've written can be done without having to have my root password unprotected, in a basic script. I have looked around and found ways to stop sudo all together but I dont want that. I just want it so that a password is not required when I do sudo mount. can someone help me out?

  2. #2
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: NO sudo password for certain commands

    I believe this would work:
    Code:
    Cmnd_Alias MYCMD=/bin/mount
    acrane1 ALL=NOPASSWD: MYCMD
    See also http://ubuntuforums.org/showthread.php?t=1132821

  3. #3
    Join Date
    Jan 2008
    Location
    VA
    Beans
    29
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: NO sudo password for certain commands

    thanks that site is perfect

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
  •