[OpenIndiana-discuss] useradd - strange behaviour
Boris Epstein
borepstein at gmail.com
Tue Oct 30 17:10:13 UTC 2012
Alexander,
You were on the right track!
Turns out there was a line for user postgres in /etc/user_attr. I deleted
that line and then useradd worked perfectly!
Thank you very much.
Boris.
On Tue, Oct 30, 2012 at 12:42 PM, Alexander Eremin <
alexander.r.eremin at gmail.com> wrote:
> useradd adds info to group, passwd, shadow, project and user_attr - so try
> to check also last two files.
>
> Alexander
>
> On Oct 30, 2012, at 8:34 PM, Boris Epstein <borepstein at gmail.com> wrote:
>
> > root at zeus:~# wc -l /etc/passwd /etc/shadow
> > 29 /etc/passwd
> > 29 /etc/shadow
> > 58 total
> > root at zeus:~#
> >
> > I looked at the content, too - and, while it is possible I missed
> > something, it looked quite normal to me.
> >
> > Boris.
> >
> > On Tue, Oct 30, 2012 at 12:31 PM, Alexander Eremin <
> > alexander.r.eremin at gmail.com> wrote:
> >
> >> Well, next round could be : wc -l /etc/passwd /etc/shadow
> >>
> >>
> >> Alexander
> >>
> >> On Oct 30, 2012, at 8:25 PM, Boris Epstein <borepstein at gmail.com>
> wrote:
> >>
> >>> Alexander,
> >>>
> >>> Thanks. Just did:
> >>>
> >>>
> >>> root at zeus:~# pwck
> >>>
> >>> lp:x:71:8:Line Printer Admin:/usr/spool/lp:
> >>> Login directory not found
> >>>
> >>> uucp:x:5:5:uucp Admin:/usr/lib/uucp:
> >>> Login directory not found
> >>>
> >>> nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
> >>> Login directory not found
> >>> Optional shell file not found
> >>> root at zeus:~# grpck
> >>> root at zeus:~#
> >>>
> >>> Nothing particularly bad detected, as far as I can tell.
> >>>
> >>> Boris.
> >>>
> >>> On Tue, Oct 30, 2012 at 12:21 PM, Alexander Eremin <
> >>> alexander.r.eremin at gmail.com> wrote:
> >>>
> >>>> Try pwck and grpck
> >>>>
> >>>> Alexander
> >>>>
> >>>> On Oct 30, 2012, at 8:13 PM, Boris Epstein <borepstein at gmail.com>
> >> wrote:
> >>>>
> >>>>> Hello all,
> >>>>>
> >>>>> I am running OpenIndiana 11 64-bit (SunOS 5.11) and somehow I get the
> >>>>> following error when I attempt to use useradd:
> >>>>>
> >>>>> root at zeus:~# useradd -d /s1pool/postgres/ -g postgres -s
> >> /usr/bin/bash
> >>>>> postgres
> >>>>> UX: useradd: ERROR: Inconsistent password files. See pwconv(1M).
> >>>>> root at zeus:~#
> >>>>>
> >>>>> Both /etc/passwd and /etc/shadow are there and look OK. What am I
> doing
> >>>>> wrong?
> >>>>>
> >>>>> Thanks.
> >>>>>
> >>>>> Boris.
> >>>>> _______________________________________________
> >>>>> OpenIndiana-discuss mailing list
> >>>>> OpenIndiana-discuss at openindiana.org
> >>>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>>>
> >>>> _______________________________________________
> >>>> OpenIndiana-discuss mailing list
> >>>> OpenIndiana-discuss at openindiana.org
> >>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>> _______________________________________________
> >>> OpenIndiana-discuss mailing list
> >>> OpenIndiana-discuss at openindiana.org
> >>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>
> >> _______________________________________________
> >> OpenIndiana-discuss mailing list
> >> OpenIndiana-discuss at openindiana.org
> >> http://openindiana.org/mailman/listinfo/openindiana-discuss
> > _______________________________________________
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss at openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
More information about the OpenIndiana-discuss
mailing list