Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 4 '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 4 '13 at 14:19
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

share|improve this answer
As root, it shouldn't ask for the password. – Heis Spiter Jan 4 '13 at 9:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.