public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Why did this happen?
@ 2009-06-30 17:54 Michael Higgins
  2009-06-30 18:36 ` Alan McKinnon
  2009-06-30 20:03 ` Dirk Heinrichs
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Higgins @ 2009-06-30 17:54 UTC (permalink / raw
  To: gentoo-user


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Why did this happen?
  2009-06-30 17:54 [gentoo-user] Why did this happen? Michael Higgins
@ 2009-06-30 18:36 ` Alan McKinnon
  2009-06-30 20:03 ` Dirk Heinrichs
  1 sibling, 0 replies; 4+ messages in thread
From: Alan McKinnon @ 2009-06-30 18:36 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Why did this happen?
  2009-06-30 17:54 [gentoo-user] Why did this happen? Michael Higgins
  2009-06-30 18:36 ` Alan McKinnon
@ 2009-06-30 20:03 ` Dirk Heinrichs
  2009-07-03 17:12   ` Michael Higgins
  1 sibling, 1 reply; 4+ messages in thread
From: Dirk Heinrichs @ 2009-06-30 20:03 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

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

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Why did this happen?
  2009-06-30 20:03 ` Dirk Heinrichs
@ 2009-07-03 17:12   ` Michael Higgins
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Higgins @ 2009-07-03 17:12 UTC (permalink / raw
  To: gentoo-user

On Tue, 30 Jun 2009 22:03:24 +0200
Dirk Heinrichs <dirk.heinrichs@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,


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-03 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 17:54 [gentoo-user] Why did this happen? Michael Higgins
2009-06-30 18:36 ` Alan McKinnon
2009-06-30 20:03 ` Dirk Heinrichs
2009-07-03 17:12   ` Michael Higgins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox