Re: [orca-list] Problem in /etc/sudoers



Hi Trevor,

2010/10/2 Trevor Saunders <trev saunders gmail com>:
Hi,

On Sat, Oct 02, 2010 at 04:59:41PM +0200, Juanje Ojeda wrote:
2010/10/2 Jason White <jason jasonjgw net>:
André Baldo <supermalavox gmail com> wrote:
Is there an accessible way of restoring /etc/sudoers in Ubuntu 10.04?

If you can still use sudo or su to become root, then use your favourite editor
to edit /etc/sudoers.

If you can't become root, then boot a live CD (preferably one that supports
your accessibility requirements), mount the root file system of your Linux
installation and edit etc/sudoers. Finally, reboot.

See the sudoers (5) manual page for details if you don't know what's wrong
with your sudoers file.


Editing /etc/sudoers file is always a risk, so if you want/need to do
it, instead of use directly the editor, I recomend to use 'visudo'.

you can if you want, I typically do personally, but its not really
risky. For it to at be at all a problem you have to one not know the
root password, which is a very bad situation, and two not be obeying the
rule about keeping a root shell open until your changes are tested. If
you don't have a root password on a machine you should fix this, and
learn to keep the root shell open until the changes are tested.


Well, I had to say 'in a Ubuntu like distributions' where there is no
root password and any admin change must be made by user with sudo
powers using sudo.
If you have problem with the sudoers having no root password there you
got a real problem... but, of course you can open a root shell with
'sudo su' just in case.

Cheers

-- 
Juanje



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]