Month: September 2016

Sudo Broken

There was an error in my friend’s lappy when she tried to install something. The error was like shown below.

sudo: /etc/sudoers is owned by uid 1001, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Then we checked the permissions of /etc folder through the command “ls -l” and mistakenly she has changed the ownership of the folder /etc/sudoers to specific user.

Then we  remount the filesystem (/) as read-write after dropping to root shell in recovery mode.

mount -o remount,rw /

The first command remounts the root linux partition as read/write so that I can make changes to the files.

For more details on mount command refer the link.

Then changed the ownership of /etc folder through the command

sudo chown root:root /etc -R

And after that reboot the system and problem is solved.


New Experience

Today’s journey was very new to me as I prepared for 2nd MST paper within 2 hours as there were two papers today. First time in a life I gave it without reading from the book I just gone through my friend “Deepti” notes due to time shortage. I appreciate her for the notes.

Beside it, today I got to know about My Passport Ultra portable hard drive.

WD My Passport Ultra (spring 2015) specs

  1. Available in four attractive colors.
  2. 500GB, 1TB, 2TB, 3TB and 4TB capacities.
  3. Offers flexible backup options.
  4. 256-bit hardware-based data encryption.
  5. Three-year limited warranty.
  6. USB 3.0, USB 2.0.