Your thread title mentions usreadd, but all of your examples use usermod.
With useradd, at least, you must add the -m option to have it no only
specify, but also create, the home directory. This may be what you wanted
all along, but now that you have the user just create the directory and
remember next time to create properly with “useradd -m username”:
For user add use the -m option to create the home directory eg;
useradd -m privelegedrooter
With usermod it’s the -d or -m option for new directory or move
contents as well…
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 RC4 | GNOME Shell 3.26.2 | 4.12.14-18-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!