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".
Leave a Reply