I want to write a shell script which should change the login user to some other user(both login id and password need to be hard coded).
I used the SU utility to change the login user to another user. But I am
not able to supply the password in the non-interactive mode.
I hope we cannot pass argument to SU command.
So, How to change the login user using scripts ?
Regards
Murugesan