usermod

On CentOS, wheel group allow users in this group to run commands as user root with sudo.

To add a user to wheel group, run

On Ubuntu/Debian, use

Remove a User from Group

Example

Here we remove user designware from group sudo.

To remove a user from all seondary group, run

Change user shell

To disable SSH login, run

For example

useradd

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *