[CentOS] nis and new users

Tue Apr 15 14:41:47 UTC 2008
William L. Maltby <CentOS4Bill at triad.rr.com>

On Tue, 2008-04-15 at 10:27 -0400, Jason Pyeron wrote:
> Every time a "new" user logs into a development box (which does not use nfs
> for the home dirs) the get could not chdir to their home dir. They call me
> with the error and I do a:
> 
> cp -a /etc/skel/ ~USER && chown USER.users -R ~USER/
> 
> and it is fixed.
> 
> Is there an automated way?

>From CLI, use useradd (man useradd) which has a parameter to
automatically set up user's home, including copying /etc/skel.

>From an X gnome desktop session (System->Administration->Users and
Groups), I can't remember if it's automatic or if it has a checkbox for
that.

Either case should fix it.

> <snip sig stuff>

HTH
-- 
Bill