Skip to contentSkip to conversation

trying to clarify the variety of "nologin" install directories

DISCUSSION Robert P. J. Day 1 participant 1 message Apr 22, 2020

lore
Share & tools
lore
#0 lore raw

was asked by a colleague this morning why an admittedly old (morty)
build had the "nologin" executable installed in both /sbin and /usr/sbin, and they were clearly different (sizes were 6K and 10K). took a quick look, and noticed that nologin was apparently being installed by both the shadow and util-linux packages.

wondered what else might be referring to nologin so, in the current
master of OE, i notice in meta/recipes-core/systemd/systemd_230.bb numerous references to nologin of the form:

USERADD_PARAM_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'coredump', '--system -d / -M --shell /bin/nologin systemd-coredump;', '', d)}"

which now presents a *third* possibility for the location of
nologin: /bin/nologin.

so i'm going to dig into history to see in what way "nologin" has
moved around, but if there's a summary somewhere, that would be just ducky.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================