Re: Adding users - two quick questions
On Mon, Jul 19, 1999 at 03:06:59PM +0100, Patrick Kirk wrote:
> >
> >
> > About the 'no home' ting: it means that the system couldn't cd to the
> user's
> > homedir after assuming the identity of the user. Usually this means
> > that /home isn't mounted, or wasn't mounted when you added the user, but
> > you may have other reasons. Just make sure that the entry in /etc/passwd
> > for the user accurately reflects their homedir, then 'chown -R user ~user'
> > and 'chmod -R u+rwX ~user'.
> Question is why useradd john -d /home/john doesn't work
You should use -m option. useradd john -d /home/john -m.
From useradd man page:
-m The user's home directory will be created if it does not
exist. The files contained in skeleton_dir will be copied
to the home directory if the -k option is used, otherwise the
files contained in /etc/skel will be used instead. Any
directories contained in skeleton_dir or /etc/skel will be cre
ated in the user's home directory as well. The -k option is only
valid in conjunction with the -m option. The default is to not
create the directory and to not copy any files.
--
o------------------o ___
|Leszek Gerwatowski| _/_|_\
o------------------o (o\__/o)=)))))))))))))
"Don't fix it if it isn't broken"
Reply to: