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

Reply via email to