Difference between revisions of "Usermod -l"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
https://linux.die.net/man/8/usermod
 
https://linux.die.net/man/8/usermod
 +
 +
sudo usermod -l newusername oldusername
  
 
--login NEW_LOGIN
 
--login NEW_LOGIN

Revision as of 13:39, 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.

See also

Advertising: