Editing Usermod
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | sudo usermod -aG sudo <username> | |
− | + | ||
+ | usermod -a -G YOUR_GROUP YOUR_USERNAME | ||
usermod -s /usr/sbin/nologin myuser | usermod -s /usr/sbin/nologin myuser | ||
[[ssh]] and [[scp]] will fail | [[ssh]] and [[scp]] will fail | ||
− | |||
− | |||
− | + | [[groups]] USERNAME | |
− | |||
== Related commands == | == Related commands == | ||
Line 23: | Line 16: | ||
* <code>[[groups]]</code> | * <code>[[groups]]</code> | ||
* [[Passwordless sudo]] | * [[Passwordless sudo]] | ||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{Linux Commands privileges}} | * {{Linux Commands privileges}} | ||
− | |||
− |
Advertising: