Add User to wheel group in CentOS 7

 How to Add User to wheel group in CentOS 7 - e Learning (wsldp.com)

Add User to wheel group using usermod command

In usermod command -G option use to specify the group that user wants be added.(if -a options is not used user will be removed from other groups he is already a member of).

usermod -a -G wheel username

Example

usermod -a -G wheel jon

The above example will add the user jon to the CentOS 7 wheel group.

Add user to wheel group in CentOS 7 using gpasswd command

Command option -a use to add a user to group in gpasswd command.

gpasswd -a username wheel

Example

gpasswd -a admin wheel

Above Example will add user admin to the CentOS 7 wheel group.

Remove user from wheel group in CentOS 7

The gpasswd command also use to remove a user from the wheel group. To remove a user we use -d option.

Example

gpasswd -d admin wheel

Above Command will remove user admin from the wheel group.

Không có nhận xét nào:

Renewing Facebook Graph API token automatically?

  Mã truy cập dài hạn https://developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived/ https://community.n8n.io/t/re...