Wednesday, February 24, 2016

Linux Commands - Manage Users

 Hi all,

In Linux, there will be several users. Main user who has administrative authorities is "root". Other than that, you can create users when you are required (I needed a user when installing Active MQ  :) ).

You can create users:
             useradd <username>
             Ex: useradd activemq
         
You can give a password for relevant user:
             sudo passwd <username>
             Ex: sudo passwd activemq

You can see details of available users and their passwords:
             sudo vim /etc/passwd

You can Change users:
             su <username>



1 comment: