How to su to another user account without password
Issue
- an user account called
origin_userto su to another user account calledtarget_userwithout the need to key intarget_user's password. - all the accounts in a group called
test_groupto su totarget_userwithout keying intarget_user's password
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.