Difference between revisions of "Usermod -l"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  sudo usermod -l newusername oldusername
 
  sudo usermod -l newusername oldusername
  
--login NEW_LOGIN
+
<code>--login</code> NEW_LOGIN The name of the user will be changed from LOGIN to NEW_LOGIN. Nothing else is changed. In particular, the user's home directory name should probably be changed manually to reflect the new login name.
The name of the user will be changed from LOGIN to NEW_LOGIN. Nothing else is changed. In particular, the user's home directory name should probably be changed manually to reflect the new login name.
+
 
 +
== Related ==
 +
* <code>[[groupmod -n]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{usermod}}
 
* {{Linux Commands privileges}}
 
* {{Linux Commands privileges}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 14:17, 28 December 2023

https://linux.die.net/man/8/usermod

sudo usermod -l newusername oldusername

--login NEW_LOGIN The name of the user will be changed from LOGIN to NEW_LOGIN. Nothing else is changed. In particular, the user's home directory name should probably be changed manually to reflect the new login name.

Related[edit]

See also[edit]

Advertising: