user3328390
user3328390

Reputation: 183

How to switch user in Centos

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

Upvotes: 18

Views: 114249

Answers (3)

Umair Asghar
Umair Asghar

Reputation: 341

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 :
[root@localhost ~]$ 

##now enjoy your commands.

Upvotes: 3

user3327926
user3327926

Reputation: 346

The command you're looking for is su.

Upvotes: 20

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

Upvotes: 30

Related Questions