Skip to main content

Pacnew Files And User Password

I could not login and I could not sudo. My password is invalidated. Somehow I made a terrible error in editing /etc/password and most probably /etc/shadow and /etc/gshadow. This previous post explains this. I can't even run grpck to check the sanity of the config files.

I went ahead and reboot. Then pressed the Shift-key to get to the grub menu. Highlight the Advanced setttings for Grub, then pressed Cntrl-e. Find the line headed by the world linux then appended "init=/bin/bash". Pressed Cntrl-x to reboot. Then I get a bash shell prompt. Then because the kernel is mounted read-only I had to remount it read, write. so,

$ mount -n -o rw /

Then we can set our new passwords, without being prompted the old ones.

$ passwd [Enter]
$ newpassword: ......

This sets the root passwords. Let's test that first. We reboot.

$ reboot -f

We fix the existing user's password in the root terminal. I like to login to my root account once in a while. This is a few of those cases.

Comments

Popular posts from this blog

Appindicator In Natty Ubuntu 11.04

Previously ranted about the blind alley Ubuntu 11.04 seemed to be leading us when it comes to some applications not being ready yet for the dropping of system tray.  What I should have done is press on. There are posts about editing a white list with a recommended GUI tool to help us out here , here and here . Like everything in Linux, there's a configuration file for it, if you can find it and if you have the inclination to go ninja. If not then there's dconf-editor. Download dconf-tools from Software Center. Navigate to desktop>unity>panel. Add your application in the white list. Then close the window. No save button. mmm. So far I have added Shutter, Dropbox and Keepassx in the white list.                Before...  After.

Evolution Mail on GNOME 3.26

There's a slight change in the user interface. A To Do column now appears to the rightmost after the GNOME 3.26 update. Also there's a noticeable stability increase, what with goa-daemon stopping its RAM usage creep. I don't have to kill it every couple of hours.

Jose Rizal, December 30, 1896 Execution by firing squad

From a photograph by Manuel Arias Rodriguez. He was executed for the crime of rebellion.