Re: root can't sudo



Am 28.09.2010 02:16, schrieb Tom H:
On Mon, Sep 27, 2010 at 7:53 PM, T o n g<mlist4suntong@xxxxxxxxx> wrote:

I had no problem invoking my scripts embedded with sudo as root before,
but not now in my new installation:

root@coral:~# echo abc | sudo tee /tmp/t
sudo: can't open /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting

root@coral:~# id
uid=0(root) gid=0(root) groups=0(root)

root@coral:~# ls -l /etc/sudoers
-r--r----- 1 root root 2354 2010-09-17 09:34 /etc/sudoers

root@coral:~# head -1 /etc/sudoers
# sudoers file.

What could be wrong?

grep root /etc/sudoers


Why should one use "sudo" in addition to being root and thus having all rights?
I would understand if you add your own user to the sudoers file...but this way...
Can you tell me the sense behind it? I mean i am really interested in, because maybe there is something new i can learn about "sudo".


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4CA192B6.3050507@xxxxxx



Relevant Pages

  • ubuntu sudoers wont talk to LDAP
    ... On our network we have our sudoers stored in LDAP. ... however when you attempt to sudo it fails: ... Set the LOGNAME and USER environment variables ...
    (Ubuntu)
  • Re: Mac OS X Security - Not Quite as Strong as you Thought
    ... GreyCloud wrote: ... The sudoers is set up so admin users ... Do man sudo and man su... ... This implies that sudoers file is not setup out of the box. ...
    (comp.sys.mac.advocacy)
  • Re: Allowing a group to use fstab mount-points
    ... Have you looked at sudo? ... shell, password blocked, etc. Allocate a /home/mounter for the account, ... and one command only, to mount the CD. ... I think mounting is one of the examples for sudoers. ...
    (freebsd-questions)
  • Re: Im Beaten
    ... which lists which users are allowed to user "sudo" ... then the command is run as root. ... man sudoers has some examples on how to allow an app to be ran ...
    (Ubuntu)
  • Re: Firefox 1.5.0.7 RPM
    ... I need root password to sudo. ... because sudoers can do just as stupid things as root. ...
    (alt.os.linux.suse)