Linux create users, set passwords, modify users, delete users
Category: Linux 2011-10-09 08:30 16996 people read review (0) Favorite Report
Linuxuser
Create a user, set a password, modify a user, delete a user:
Useradd testuser Create user TestUser
passwd TestUser set a password for the created user TestUser
Description: The newly created user will create a user directory under/home TestUser
Usermod--help Modify user parameters for this command
Userdel testuser Delete User testuser
RM-RF testuser Delete the directory where the user testuser is located
The above commands can only be used by the root account, if you do not know where the command above your system can use the following command to find its path:
Locate Useradd
When a new user is created, the information about the new user is added to the passwd file in the ETC directory.
Description: In order to, I used the tail-3 passwd command here, only the last 3 lines of the file (and the information I'm concerned about) are displayed.
User Switching between command-line windows:
SU User name
Description: SU is an abbreviation for switch user, indicating
Enter "Exit" from the new user state to return to the user state you just made
Add and remove user groups:
Groupadd Adding a testgroup group
Groupdel Removal of Testgroup Group
Note: the addition and deletion information of the group is reflected in the groups file of the ETC directory.
Http://blog.sina.com.cn/s/blog_49a665e10100agby.html
If you do not want to shut down after 10 minutes of shutdown, you can use CTRL + C to terminate the shutdown command.
Linux create users, set passwords, modify users, delete users
Category: Linux 2011-10-09 08:30 16996 people read review (0) Favorite Report
Linuxuser
Create a user, set a password, modify a user, delete a user:
Useradd testuser Create user TestUser
passwd TestUser set a password for the created user TestUser
Description: The newly created user will create a user directory under/home TestUser
Usermod--help Modify user parameters for this command
Userdel testuser Delete User testuser
RM-RF testuser Delete the directory where the user testuser is located
The above commands can only be used by the root account, if you do not know where the command above your system can use the following command to find its path:
Locate Useradd
When a new user is created, the information about the new user is added to the passwd file in the ETC directory.
Description: In order to, I used the tail-3 passwd command here, only the last 3 lines of the file (and the information I'm concerned about) are displayed.
User Switching between command-line windows:
SU User name
Description: SU is an abbreviation for switch user, indicating
Enter "Exit" from the new user state to return to the user state you just made
Add and remove user groups:
Groupadd Adding a testgroup group
Groupdel Removal of Testgroup Group
Note: the addition and deletion information of the group is reflected in the groups file of the ETC directory.
Http://blog.sina.com.cn/s/blog_49a665e10100agby.html
If you do not want to shut down after 10 minutes of shutdown, you can use CTRL + C to terminate the shutdown command.
Linux create users, set passwords, modify users, delete users