On 08/10/2012 02:09 AM, Raakesh kumar wrote:
Today i changed the permission of my /etc directory and it's sub
directories and files using  "sudo nautilus". And now my everything
including servers and all have stopped working.

That's the most worst change any newbie like you can do. You should know what you're doing particularly when fiddling with the system files and, or directories.

When i type sudo anywhere to use it shows an error as -

sudo: /etc/sudoers is mode 0446, should be 0440
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Can somebody help me to get my system back as it was earlier.. Or is there
any way to restore my system back?

You did not tell what was the exact command or what indeed you typed, hence all I can do is just guess or provide you a hint. Try booting your system with a live/rescue CD/DVD and executing the following:

$ sudo mount /dev/<partition> /mnt
$ sudo chmod -R o-w /mnt/etc

Substitute the <partition> with root partition of your Ubuntu installation.

WARNING: The above is also as dangerous as was your attempt to make your system unusable.

NOTE: All directories in your /etc including /etc should/can be 0555 or 0755 and the files 0444 or 644, but some sensitive directories and, or files containing passwords or serious things should/must not even be readable by others i.e. these directories should/must be 0550 or 0750 and files 0440 or 0640.

Reboot your system; hope that helps.

--
Balwinder S "bdheeman" Dheeman
(http://werc.homelinux.net/contact/)


_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to