2 Replies Latest reply: Nov 3, 2009 10:13 AM by SBC350 RSS

    Need help to edit sudoers using script

    SBC350 Enthusiast

      Hi, im using a kickstart script to automate my ESX installation.


      There is a line in the script used to uncomment 1 line in sudoers but it uncomment 2 lines concerning wheel.


      Here is the script: sed -i 's/# %wheel/%wheel/g' /etc/sudoers



      Here is the part I want to edit in sudoers "# %wheel ALL=(ALL) ALL":



      "# Uncomment to allow people in group wheel to run all commands

      "# %wheel ALL=(ALL) ALL


      "# Same thing without a password

      "# %wheel ALL=(ALL) NOPASSWD: ALL


      Thank you


      If you found this or any other answer useful please consider the use of the Helpful or correct buttons to award points



      Consultant - VMware Specialist