[ilugd] Ubuntu sudo command problem

2012-08-09 Thread Raakesh kumar
Hi All,
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. 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?

Thanks in advance...
-- 
Regards
RAKESH KUMAR
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Ubuntu sudo command problem

2012-08-09 Thread Balwinder S Dheeman

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


[ilugd] ILUG-D activity in last 7 days

2012-08-09 Thread nkapoor
Fri 10-Aug-2012: ILUG-D activity in last 7 days:
=
New/recent events: 0   Total events: 83
=
New Discussion forum postings: 0   Total postings: 1143
=
New News items: 0   Total News items: 378
=
New Resources: 0   Total Resources: 0
=
New comments: 0Total comments: 260
=
New pictures: 0Total pictures: 231
=
New members: 4   Total members: 6995
-
1. Anoop Sharma, Power User, , India
2. Nullcon nullcon, User, , India
3. Pulkit gupta, Novice, , India
4. Shaunak , User, , India
=
Send your suggestions, comments or feedback to admin_at_linux-delhi_dot_org

--
This email is brought to you by http://www.linux-delhi.org/ - India Linux Users 
Group - Delhi.
 ___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Ubuntu sudo command problem

2012-08-09 Thread Raj Mathur (राज माथुर)
On Friday 10 Aug 2012, 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. 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?

1. Get a list of permissions of critical files in /etc/ from the 'net, a 
friend's machine, wherever.

2. Boot into root.  I won't tell you how, there are enough pointers on 
the 'net.

3. Apply the correct permissions to your own /etc files.

4. Reboot.

5. Pay me.

Regards,

-- Raj
-- 
Raj Mathur  || r...@kandalaya.org   || GPG:
http://otheronepercent.blogspot.com || http://kandalaya.org || CC68
It is the mind that moves   || http://schizoid.in   || D17F

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