Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] Why did this happen?

0 views
Skip to first unread message

Michael Higgins

unread,
Jun 30, 2009, 2:00:18 PM6/30/09
to

Can anyone speculate as to why this error?

Is the fix to usermod -s /sbin/nologin for each of these?


ebuild log for sys-apps/baselayout-2.0.1 on evolone.org


WARN: postinst
The following users have non-existent shells!
apache - /usr/sbin/nologin
cron - /usr/sbin/nologin
ldap - /usr/sbin/nologin
postfix - /usr/sbin/nologin
sshd - /usr/sbin/nologin


--
|\ /| | | ~ ~
| \/ | |---| `|` ?
| |ichael | |iggins \^ /
michael.higgins[at]evolone[dot]org

Alan McKinnon

unread,
Jun 30, 2009, 2:40:14 PM6/30/09
to
On Tuesday 30 June 2009 19:54:23 Michael Higgins wrote:
> Can anyone speculate as to why this error?
>
> Is the fix to usermod -s /sbin/nologin for each of these?
>
>
> ebuild log for sys-apps/baselayout-2.0.1 on evolone.org
>
>
> WARN: postinst
> The following users have non-existent shells!
> apache - /usr/sbin/nologin
> cron - /usr/sbin/nologin
> ldap - /usr/sbin/nologin
> postfix - /usr/sbin/nologin
> sshd - /usr/sbin/nologin

Do not make any changes, this is correct. System users should not have a
shell, as the account is never used to log in (not the same thing as dropping
privileges to the UID of the account).

This is a prime example of a daft ebuild. The ebuild should have checked that

a) the account does not have a shell and
b) the account uid falls in the range of system accounts as per login.defs and
c) therefore issued no postinst

You should file a bug.

--
alan dot mckinnon at gmail dot com

Dirk Heinrichs

unread,
Jun 30, 2009, 4:10:09 PM6/30/09
to
Am Dienstag 30 Juni 2009 19:54:23 schrieb Michael Higgins:

> Can anyone speculate as to why this error?

Because it's /sbin/nologin.

> Is the fix to usermod -s /sbin/nologin for each of these?

Yes. Or vipw.

Bye...

Dirk

signature.asc

Michael Higgins

unread,
Jul 3, 2009, 1:20:13 PM7/3/09
to
On Tue, 30 Jun 2009 22:03:24 +0200
Dirk Heinrichs <dirk.he...@online.de> wrote:

> Am Dienstag 30 Juni 2009 19:54:23 schrieb Michael Higgins:
>
> > Can anyone speculate as to why this error?
>
> Because it's /sbin/nologin.

Indeed.

>
> > Is the fix to usermod -s /sbin/nologin for each of these?
>
> Yes. Or vipw.

Very useful tool I never knew about. Thanks.

It gets more interesting, since viewing with that tool, the passwd file shows all the shells look right, pointing to /sbin/nologin. So, where did the incorrect values come from, I wonder?

I'll file a bug against the ebuild.

Cheers,

0 new messages