LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-06-2014, 07:06 PM   #1
Cartoonite
LQ Newbie
 
Registered: Aug 2006
Location: Toronto, ON
Distribution: Kubuntu
Posts: 8

Rep: Reputation: 0
[Kubuntu] Unable to log in after / volume filled during update installation


First off, whether it is related to my login issue or not, shame on me for letting the / volume become 100% full in the first place. Duly noted, so let's move on.

As the topic states, my / volume filled to 100% capacity while installing a bunch of updates, including a kernel update. The machine is a laptop and I was about to change locations so I shut it down and ever since I have been unable to log in after a normal start up.

The system starts normally (as far as I can tell) but when I enter my username and password at the GUI login screen it throws an invalid password error even though I know the password is correct. If I switch to one of the TTYs and try to log in, the system throws an 'Permission denied' error immediately after entering my username (i.e., I am not even prompted for a password) and returns to the main login prompt. This behaviour is consistent regardless of whether the username entered exists on the system.

I am able to boot into recovery mode and through the recovery mode console I have been able to free several hundred MB off of the / volume by removing older kernels. The volume is no longer starved for space but the login issue persists.

Also using the recovery console I have confirmed that the password is correct by using su to switch to my own account and then running passwd. When passwd prompts me for my current password and I enter it, it proceeds to the next step as expected. When I enter the same password for both New and Verify, the application reports that the password is unchanged, as expected.

I created a new user via the recovery console and the process returns an error, although the user appears to be created normally:

Code:
# adduser testuser
Adding user `testuser' ...
Adding new group `testuser' (1001) ...
Adding new user `testuser' (1001) with group `testuser' ...
Creating home directory `/home/testuser' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
chfn: PAM: Permission denied
adduser: `/usr/bin/chfn testuser' returned error code 1. Exiting.
I have searched the internet but most login failure topics seem to deal with desktop sessions that start to load before kicking the user back to the login screen which is considerably different behaviour than I am experiencing.

Since I can only get to a text prompt on the affected machine I have limited access to logs but I have attached the auth.log excerpt that I believe shows my last successful login as well as one from what I believe was the first failed login attempt after the issue presented itself.

I am happy to pull whatever logs might help off of the machine but I am not sure where to start and posting dozens of logs seemed counter-productive.

All of my internet searches thus far have turned up nothing useful and I am at a loss as to how to proceed from here, short of just reinstalling the OS. Any and all suggestions and help are welcome and appreciated.
Attached Files
File Type: log auth.failure.log (2.1 KB, 13 views)
File Type: log auth.success.log (3.8 KB, 8 views)
 
Old 11-07-2014, 12:13 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
In your predicament I would boot off of a Live CD/DVD/USB, grab my data off the drive and then do a full re-install.

The concern is you were halfway through an upgrade so who knows what the state of your system really is.
 
Old 11-10-2014, 09:38 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Moderator Response

Moved: This thread is more suitable in <Ubuntu> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-10-2014, 01:40 PM   #4
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Booting to a live session and backing up would be a great idea.

Your system, however, should be recoverable. You will need, while in the Live Session to chroot in, clean things up so you have some space, run;
Code:
dpkg --configure -a
which should sort out a lot of the mess. Would be surprised it got it all. In that case run;
Code:
apt-get -f install
That is the command to fix broken packages and should sort it out.

Any errors after that would best be handled with those same commands but booted to recovery mode.

People wonder why I like big / partitions. This is part of it. I tend to leave /var/cache/apt/archieves alone for a long time. I kind of like to see the history of my system and it is laid out there pretty well. Takes up a lot of space though.
 
1 members found this post helpful.
Old 11-12-2014, 04:24 PM   #5
Cartoonite
LQ Newbie
 
Registered: Aug 2006
Location: Toronto, ON
Distribution: Kubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Success

Thank you rtmistler and widget for your feedback.

Turns out that the PAM module was messed up, presumably during the failed update install process when I ran out of space.

Here's a breakdown of what I ran through to resolve the issue.

As I mentioned previously, I was able to clean up space on the volume by deleting old kernels. This should have been a straight-forward process but having the system in an inconsistent state caused problems. I couldn't do anything with apt-get or aptitude because one of my installed packages was missing a dependency (kernel update) and there was no space left on the volume to install the missing package. I was finally able to work around this by running the following in the recovery console with networking disabled:

Code:
apt-get --ignore-missing remove "linux-(image(-extra)?|headers)-3.13.0-3[256].*" linux-headers-3.13.0-39-generic+
This allowed me to remove versions 3.13.0-32, -35 and -36 of linux-headers, linux-image and linux-image-extra, as well as their generic counterparts. The final argument was required to trick apt-get into thinking I wanted to also install the package that was a missing dependency and the --ignore-missing switch allowed apt-get to proceed to with the removal of the packages I wanted to remove even though the installation failed due to lack of connectivity to the repository.

With almost a gig of space freed by removing the old kernels, I was able to enable networking and fix my broken dependencies.

Once all of that was done I rebooted but found no change in my ability to log in. I was now able to boot successfully to the -39 kernel (prior to the fix a normal boot to -39 failed, for understandable reasons) but I was still getting password errors when trying to log in to my desktop.

I searched the internet some more and found a reference to the "sanity check" application debsums. I installed it (via recovery console) and scanned for hash mismatches.

Code:
debsums -c
This returned a single file so I used dpkg to figure out which package that file belonged to (dpkg itself) and the reinstalled that package with aptitude:

Code:
dpkg -S /sbin/start-stop-daemon
aptitude reinstall dpkg
After this I confirmed a clean bill of health for both the system files and the config files using debsums and rebooted again; still no joy.

At this point I started to wonder if there was an issue with PAM since everything except authentication seemed to be working normally. I am not terribly familiar with how PAM works, but it seemed like reinstalling the PAM module(s) was a good place to start.

I used dpkg to find a list of packages that I thought might be related to PAM and then reinstalled one of them with aptitude.

Code:
dpkg --get-selections | grep pam
aptitude reinstall libpam-cap
As part of the post-package install process, aptitude reported a failure with pam-auth-update due to changes in the the local common files (/etc/pam.d/common-*).

I couldn't think of anything that I had done that would have modified those files so I backed them up and then ran:

Code:
pam-auth-update --force
I rebooted one last time and confirmed that, at last, I was able to log in successfully.

With the system apparently back in working order, I diffed the contents of /etc/pam.d/common-* against my backups and found that common-account and common-auth had both been blanked out somehow; the backup files were completely empty. I suspect the disk ran out of space while these files were being updated by the initial update process that filled up my / volume and, as a result, the were replaced with blank files. Manually running pam-auth-update restored the files to their default state and now things seem to be working normally again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 20: Unable to log into most desktop envs. after yum update rahulrajaram2005 Linux - Desktop 12 06-09-2014 06:52 PM
Unable to lauch the Updates...New Installation of Kubuntu... gmolnar@sympatico.ca Linux - Newbie 2 01-22-2014 10:38 PM
Kubuntu will not log in after update to 9.1 ddrohan Linux - Newbie 5 11-15-2009 11:03 PM
Volume of a partially filled sphere cap jlinkels Programming 18 05-02-2009 10:49 AM
Unable to log in after installation, help! tayvion Linux - Newbie 3 01-13-2006 08:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration