User and group usage

xiaoxiao2021-03-06  56

1. Create a group of WebDev:

Example: GroupAdd WebDev

2. Create a user and add the user to the WebDev group:

Example: adduser Xuys -g WebDev

Give the user password:

Example: Passwd Xuys

3. Add a user to the root group:

Example: usermod -g root xuys

4, completely delete a user:

Example: Userdel -r Xuys

转载请注明原文地址:https://www.9cbs.com/read-114649.html

New Post(0)