can't log in after update

Richard B. Pyne rpyne at
Sun Jul 3 19:14:15 CEST 2011

On 7/3/2011 11:03 AM, Richard B. Pyne wrote:
> On 7/1/2011 3:14 PM, Stefan Wold wrote:
>> On Fri, 2011-07-01 at 13:12 -0600, Richard B. Pyne wrote:
>>> I started updating my lunar based server this morning and now cannot 
>>> log
>>> get to being root except from booting in single user mode.
>> Check your logs! They should at least give you an indication what is
>> wrong. My hunch is that you might have had a modified pam file
>> in /etc/pam.d, if that is the case shadow nor Linux-PAM will update that
>> file. Does lvu install shadow and lvu install Linux-PAM list any files
>> in /etc/pam.d?
>> If they do, please tell is which ones. If it doesn't that is your issue.
>> You need to manually replace the pam.d files or remove them
>> from /etc/pam.d and reinstall shadow and Linux-PAM.
> The first thing do after a new lunar install is to remove Linux-PAM. 
> while the /etc/pam.d directory does exist, it is empty.
> What I was able to discover is that the /etc/login.defs files was 
> missing. Simply creating an empty /etc/login.defs files has cured the 
> problem. Something in the update of shadow deleted the file.
I did a little digging and found that it also removed the 
/etc/login.access and /etc/limits files. It appears that the cause of 
these files being removed is that even though the build script contains 
the lines:

     [ -e /etc/limits ] || install -m 0644 etc/limits /etc/
     [ -e /etc/login.access ] || install -m 0644 etc/login.access /etc/
     [ -e /etc/login.defs ] || install -m 0644 etc/login.defs /etc/

the files have been removed from the module and therefore do not get 

More information about the Lunar mailing list