-1

I created another user in CentOs named sheilay. From the default account which is root, how can I use the user sheilay in the CLI without shutting it down? What should I do?

sheila
  • 1
  • 1
    Are you sure you want to use `root` account for all and sundry purposes? This is not a recommended practice; furthermore it can be outright dangerous. – Deer Hunter Jan 04 '13 at 11:08
  • Maybe I'm missing something...but after you created the user why not just logout and login as the new user? Or did you mean you didn't want to leave your current terminal (that is, you actually meant logout, not shutdown)? – Alex Jan 04 '13 at 14:19

1 Answers1

3
su - sheilay

This will prompt you for password of user sheilay.

For more reading about su read me or just type man su and then enter

UPDATE : If you run su as root, it will not prompt you for a password. If you want to exit from that user session, just type exit and enter

Suku
  • 2,036
  • 13
  • 15