need to su - as normal user to normal user password less.
suppose - user A- create user-> user B
suppose we login on terminal via user A.
when we run the command su - then login user B.
without ssh -
Password less su - command for normal user to normal user . normal user run su - command and login normal user
we login via - normal user - userA.
User A create New user UserB
and i want - when we run the command on userA session-
login at userB.
Please use proper titles for your questions and also please describe your question more clearly so that we can better understand…Just posting one line questions will not helpful for us…
I request you to modify your questions and explain clearly…
@ravisaive Thanks because this question was not clear enough for one to understand and offer help.
we login over system as normal user - userA.
and want to password less when i run - > su - userB.
how can i implement.
without --> ssh ( id_rsa.pub _> auhtorize_keys -ssh )
Update sudo configuration for the new user ,
username ALL=(ALL) NOPASSWD: ALL
save the file,do verification by issuing commend visudo -c
switch to user and try
sudo su -
sudo -u root /usr/sbin/dmidecode
[rajesh@instructor ~]$ sudo -u nages whoami
and you can execute all command it will not prompt for password