SUDO - allow user joe to SU to usera
How do I allow regular user Joe to SU to only userA, noone else should be able to su to userA and joe won't be allowed to SU to root or anyone else besides userA. Also How do I allow John to su to root, besides john noone can su to root. Thanks.
Host_Alias SVR = HP1
User_Alias ADMIN = joe
Cmnd_Alias SU= /usr/bin/su
ADMIN SVR = (prod1) SU, !root (is this the right systax?)
ADMIN SVR = (SU) root