How to switch user in Centos
90,346
Solution 1
The command you're looking for is su.
Solution 2
You can use su to change to another user:
su <username>
for more help with the su command, you can read the man page via the man command:
man su
Solution 3
First use man to learn tutorial about su then implement.
man su
then use a below-mentioned command to switch between users.
su [anyusername]
su root
password :
[[email protected] ~]$
##now enjoy your commands.
Related videos on Youtube

Author by
user3328390
Updated on July 09, 2022Comments
-
user3328390 6 months
I need command to known the command, which switch between users in command prompt. Im using CentOS 6.5 and Putty. Does anybody know this command? Thanks for help