Thread: using 'usermod'
View Single Post
  #2   (View Single Post)  
Old 27th July 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Read the syntax in the man page again. Your use of "-d garry /home/garry" and "-dm /home/garry" are both invalid.

-d must be followed *immediately* by the new directory. Not by the user, not by -m.


Moving files from within /home/garry/garry to /home/garry may cause recursion issues. You might instead use chpass(8) to edit the user's entry, then move files manually.
Reply With Quote