[Pkg-shadow-devel] CLOSE_SESSIONS check is a bit too invasive

Christian Perrier bubulle at debian.org
Thu Aug 25 11:59:42 UTC 2005


root at mykerinos:~/src/debian/shadow# LC_ALL=C su - bubulle
configuration error - unknown item 'CLOSE_SESSIONS' (notify administrator)
bubulle at mykerinos:~> logout
root at mykerinos:~/src/debian/shadow# grep CLOSE_SESSIONS /etc/login.defs
# CLOSE_SESSIONS


>From this, it seems that login checks about CLOSE_SESSIONS in
login.defs by a simple grep-style check.

If I uncomment the line from /etc/login.defs, I get warned twice...

root at mykerinos:~/src/debian/shadow# LC_ALL=C su - bubulle
configuration error - unknown item 'CLOSE_SESSIONS' (notify administrator)
configuration error - unknown item 'CLOSE_SESSIONS' (notify administrator)
bubulle at mykerinos:~> logout
root at mykerinos:~/src/debian/shadow# grep CLOSE_SESS /etc/login
login.defs           login.defs.dpkg-old  login.defs.save
root at mykerinos:~/src/debian/shadow# grep CLOSE_SESS /etc/login.defs
CLOSE_SESSIONS  true


Thus, even when the value is here but commented, it is still reported,
which is kinda invasive.

As I intend to keep a mention of this obsolete value in our provided
login.defs file, could this be corrected?


-- 





More information about the Pkg-shadow-devel mailing list