HPUX: Adjust sudo userprofiles

HPUX: Adjust sudo userprofiles

HPUX: Adjust sudo userprofiles 150 150 Roderick Derks

edit sudo userfile:
#visudo
toevoegde regels:
user1  ALL=/usr/sbin/sam, /usr/bin/vi /etc/hosts
user2  ALL=/usr/sbin/sam, /usr/bin/vi /etc/hosts
user3    ALL=/usr/sbin/sam, /usr/bin/vi /etc/hosts 

Edit .profile files of user user1, user2, user3:
alias sam="/opt/iexpress/sudo/bin/sudo /usr/sbin/sam"

This helps the user on the commandline to start SAM.
Root rights for a normal user using sudo on /etc/hosts if you execute the command "sudo vi /etc/hosts".

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message