General discussion


cannot create home dir:

By zawmin20052003 · i've one pro:,I can't create user home directory when i add new user.i can issue command "useradd -d" but nothing was create in referred directory.and i've tried to issued "usermod -d" again.but same .and i used root id to create new user.
anybody knows it....? thanks alot.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by ghislain.levesque In reply to cannot create home dir:

Verify the file auto_master and comment the entry /home. umount /home and the you should be able to create directories in /home.

Collapse -

by Martin Simons In reply to cannot create home dir:

use "useradd -d <dir> -m"
or "usermod -d <dir> -m"

the "-m" option will tell useradd/usermod to
create the directory if it does not exist.
Otherwise the -d only adds/modifies the directory
reference in the user entry.

I am sorry, I don't mean to sound like an
a**hole, but this information is found in the
man pages "man useradd".

Collapse -

by Gary_W In reply to cannot create home dir:

Repeat three times: "There's no place like $HOME"

Related Discussions

Related Forums