AFAIK, the usermod -m option is for moving an existing home directory's contents to a specified new home e.g.
Code:
sudo usermod -d /home/newuser -m olduser
You could manually create /home/satm and then run usermod -d (without the -m)
Code:
sudo mkdir /home/satm
sudo addgroup satm
sudo chown satm:satm /home/satm
sudo usermod -d /home/satm satm
but to be honest, it would probably be easiest if you deleted the new user and then create it again using adduser instead of the (low level) useradd - by default that does create the home dir iirc, as well as a suitable user private group, and also populates the account with sensible defaults from /etc/skel (such as a working .profile and a .bashrc)
Bookmarks