Usermod: Difference between revisions

From Wiki
Jump to navigation Jump to search
Created page with 'Lock a barney's account (puts a '!' in front of the encrypted password in <code>/etc/shadow</code>): <pre> usermod -L barney </pre> Add barney to group admins: <pre> usermod -a …'
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Lock a barney's account (puts a '!' in front of the encrypted password in <code>/etc/shadow</code>):
{{lowercase title}}
Lock barney's account (puts a '!' in front of the encrypted password in <code>/etc/shadow</code>):
<pre>
<pre>
usermod -L barney
usermod -L barney

Latest revision as of 20:38, 9 September 2011

Lock barney's account (puts a '!' in front of the encrypted password in /etc/shadow):

usermod -L barney

Add barney to group admins:

usermod -a -G admins barney

Change barney's username to Barney:

usermod -l Barney barney