Allow user1 to “su - user2” without password
Clash Royale CLAN TAG #URR8PPP 44 28 I need to allow user martin to switch to user martin-test without password su - martin-test I think this can be configured in /etc/pam.d/su . There are already some lines in that file which can be uncommented. However, I don't like the idea of adding user martin to group wheel . I don't want to give martin any more privileges than to be able to switch to martin-test . I also do not want to use sudo . What would be the best way to do it, while keeping the privileges of user martin minimal? users password authentication pam share | improve this question edited Feb 13 '14 at 4:26 Braiam 23.5k 19 77 140 asked Feb 5 '14 at 21:26 Martin Vegter Martin Vegter 240 35 125 239 2 This is easier to do with sudo eg sudo -u martin-test -i . Is there a reason you are asking specifically about su ? – jordanm Feb 5 '14 at 22:24 3 Do you have to use su , or ...