Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
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 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
add comment

1 Answer

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
1  
As root, it shouldn't ask for the password. –  Heis Spiter Jan 4 '13 at 9:27
add comment

Your Answer

 
discard

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.