Linux User Management Commands 2020|how to create user in Linux|switch user|add user|view user
User Management in Linux Two types of users in linux: --------------------------------------------------- 1.Root User 2.Normal User 1. Root User = There is only one root user for a Linux System and its created by default The root user has total control of the Linux System like 1. Managing all the system resources 2. File Management 3. User Management 4. Network Configurations 5. System Configurations &Software Installations 2. Normal User = Any other user added by the ROOT will becomes Normal User. They has access to his home directory only. To enter root ----------------------- sudo su - (or) sudo su root To add user --------------------- adduser username To view user ---------------------- id username switch user ----------------------- suso su username switch user via gui ----------------------- super user ------------------- sudo su - To see how many users is there ---------------------------------------- users cat /etc/passwd to see sudoers -------------------------------------------- sudo su username sudo nano /etc/sudoers switch user sudo su avid
Comments
Post a Comment