Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 7645  / 3 Years ago, tue, may 11, 2021, 5:23:42

I tried this command



root@node1:~# usermod -l node1admin serveradmin -d /home/node1admin -m
Usage: usermod [options] LOGIN


It keeps saying I have wrong command. The help provides only the options, doesn't really tell me the format. But where is the problem?


More From » username

 Answers
0

Assuming you're trying to change serveradmin's name to node1admin, use this instead:



usermod -l node1admin -m -d /home/node1admin serveradmin


In particular, the name of the user account you're operating on should be last, as the general syntax for usermod is:



usermod [options] LOGIN

[#36470] Wednesday, May 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sweetrifiabl

Total Points: 422
Total Questions: 94
Total Answers: 120

Location: Bonaire
Member since Sat, Sep 24, 2022
2 Years ago
sweetrifiabl questions
Mon, Apr 4, 22, 16:02, 2 Years ago
Sat, Jul 17, 21, 01:40, 3 Years ago
Thu, Nov 18, 21, 17:36, 2 Years ago
Mon, Jan 17, 22, 19:02, 2 Years ago
;