On Sat, 13 Jun 2015 15:50:57 -0700, in message [email protected], King Beowulf wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06/13/2015 03:04 PM, Rich Shepard wrote:
> > For some reason I've not been able to discern, when I add me as a
> > user to the netbook it looks OK until I log in. Then I get the
> > message that 'no directory, logging in with HOME=/'.
> >
> > The useradd command I use is: useradd -m -d /home/rshepard -u 1000
> > -g 100 -s /bin/bash rshepard
> >
> > The /home/ directory contains ftp/, lost+found, and rshepard. The
> > first two are owned by root.root, the last by rshepard.users.
> > /etc/passwd has the line
> > 'rshepard:x:1000:100::/home/rshepard:/bin/bash' and group 100 is
> > 'users'. As root, the password for rshepard is created and works to
> > log in.
> >
> > There's nothing I see in the useradd man page or my Web searches
> > that explains why this time I cannot log in to /home/rshepard/ on
> > the netbook. Prior to my negligent error of wiping out /etc/ the
> > same command worked as it's supposed to work and when I log in as a
> > user it's in /home/rshepard/.
> >
> > I've no idea where to look for a solution since everything appears
> > correct but it's just not working.
> >
> > Your thoughts are needed.
> >
> > Rich
>
> That is odd. Your "passwd" entry appears wrong. it should read
> something like
>
> rshepard:x:1000:100:,,,:/home/rshepard:/bin/bash
The field between group and home, that you have marked ",,," is
the GCOS (formerly GECOS) field. It is simply a comment, and
usually holds the user's full name. It can safely be left empty.
Unfortunately, I don't use Slackware, so I can't tell why Rich is
having such trouble.
Rich,
1. Is your shadow password entry correct?
2, Is /home/rshepard really a directory? (I know it almost
certainly is, but just for the sake of completeness...)
3. Can you log in from root, using "su -l rshepard"?
--Dale
--
"It is by caffeine alone I set my mind in motion. It is by the
beans of Java that thoughts acquire speed, the hands acquire
shakes, the shakes become a warning. It is by caffeine alone I set
my mind in motion." -- The Programmer's Mantra
pgpUdFv8fttKm.pgp
Description: OpenPGP digital signature
_______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
