root@coral:~# head -1 /etc/sudoers
# sudoers file.
What could be wrong?
Thanks
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i7raph$96h$1@dough.gmane.org">http://lists.debian.org/i7raph$96h$1@dough.gmane.org
09-28-2010, 12:16 AM
Tom H
root can't sudo
On Mon, Sep 27, 2010 at 7:53 PM, T o n g <mlist4suntong@yahoo.com> 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
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTimGUqRTrZy8_R-8Q6C6ad3hMyenajH4kUAJCrjE@mail.gmail.com">http://lists.debian.org/AANLkTimGUqRTrZy8_R-8Q6C6ad3hMyenajH4kUAJCrjE@mail.gmail.com
09-28-2010, 12:34 AM
T o n g
root can't sudo
On Mon, 27 Sep 2010 20:16:05 -0400, Tom H wrote:
>> What could be wrong?
>
> grep root /etc/sudoers
% grep ^root /etc/sudoers
root ALL=(ALL) ALL
It has always been there.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i7rd64$96h$2@dough.gmane.org">http://lists.debian.org/i7rd64$96h$2@dough.gmane.org
09-28-2010, 02:09 AM
Tom H
root can't sudo
On Mon, Sep 27, 2010 at 8:34 PM, T o n g <mlist4suntong@yahoo.com> wrote:
> On Mon, 27 Sep 2010 20:16:05 -0400, Tom H wrote:
>
>>> What could be wrong?
>>
>> grep root /etc/sudoers
>
> % grep ^root /etc/sudoers
> root ALL=(ALL) ALL
>
> It has always been there.
Sorry, no idea then.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTimSWPCLf7ko4zbA1V1+131oa0+RzABjq0qc1Tox@mail .gmail.com">http://lists.debian.org/AANLkTimSWPCLf7ko4zbA1V1+131oa0+RzABjq0qc1Tox@mail .gmail.com
09-28-2010, 02:16 AM
Tom H
root can't sudo
On Mon, Sep 27, 2010 at 10:09 PM, Tom H <tomh0665@gmail.com> wrote:
> On Mon, Sep 27, 2010 at 8:34 PM, T o n g <mlist4suntong@yahoo.com> wrote:
>> On Mon, 27 Sep 2010 20:16:05 -0400, Tom H wrote:
>>
>>>> What could be wrong?
>>>
>>> grep root /etc/sudoers
>>
>> % grep ^root /etc/sudoers
>> root ALL=(ALL) ALL
>>
>> It has always been there.
>
> Sorry, no idea then.
Spoke too early.
Do you have the "!root_sudo" option set?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTikHmGrNQ-PKfBJMCGFizCZO2RD1-7b17S15yx_1@mail.gmail.com">http://lists.debian.org/AANLkTikHmGrNQ-PKfBJMCGFizCZO2RD1-7b17S15yx_1@mail.gmail.com
09-28-2010, 02:22 AM
T o n g
root can't sudo
On Mon, 27 Sep 2010 22:16:34 -0400, Tom H wrote:
> Do you have the "!root_sudo" option set?
Nope:
$ sudo cat /etc/sudoers | grep root_sudo || echo no
no
Thank you all the same.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i7rjhp$4p0$1@dough.gmane.org">http://lists.debian.org/i7rjhp$4p0$1@dough.gmane.org
09-28-2010, 02:44 AM
Tom H
root can't sudo
On Mon, Sep 27, 2010 at 10:22 PM, T o n g <mlist4suntong@yahoo.com> wrote:
> On Mon, 27 Sep 2010 22:16:34 -0400, Tom H wrote:
>
>> Do you have the "!root_sudo" option set?
>
> Nope:
>
> $ sudo cat /etc/sudoers | grep root_sudo || echo no
> no
>
> Thank you all the same.
You're welcome.
Do you have an "/etc/pam.d/sudo" file? Can another user use sudo? Any
hint about the reason for the failure in "/var/log/auth.log"?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTinbWdLRT3UswTFh92qskrn5=FKu3ii8F+=G9gC+@mail .gmail.com">http://lists.debian.org/AANLkTinbWdLRT3UswTFh92qskrn5=FKu3ii8F+=G9gC+@mail .gmail.com
09-28-2010, 02:52 AM
T o n g
root can't sudo
My bad.
The failed environment is a linux-live environment that I built myself.
When mirroring it to HD, everything works fine. So it's actually the live
environment's problem, not sudo's.
Thanks again for your comprehensive tips, which I'll garter bellow in
case someone else need to troubleshoot:
- Make sure the 'root ALL=(ALL) ALL' line is in /etc/sudoers
% grep ^root /etc/sudoers
root ALL=(ALL) ALL
- should not have the "!root_sudo" option set
$ sudo cat /etc/sudoers | grep root_sudo || echo no
no
Also check,
On Mon, 27 Sep 2010 22:44:07 -0400, Tom H wrote:
> Do you have an "/etc/pam.d/sudo" file? Can another user use sudo? Any
> hint about the reason for the failure in "/var/log/auth.log"?
Thanks again.
--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: i7rla8$94d$1@dough.gmane.org">http://lists.debian.org/i7rla8$94d$1@dough.gmane.org
09-28-2010, 03:53 AM
Tom H
root can't sudo
On Mon, Sep 27, 2010 at 10:52 PM, T o n g <mlist4suntong@yahoo.com> wrote:
> My bad.
>
> The failed environment is a linux-live environment that I built myself.
> When mirroring it to HD, everything works fine. So it's actually the live
> environment's problem, not sudo's.
>
> Thanks again for your comprehensive tips, which I'll garter bellow in
> case someone else need to troubleshoot:
>
> - Make sure the 'root ALL=(ALL) ALL' line is in /etc/sudoers
>
> % grep ^root /etc/sudoers
> root ALL=(ALL) ALL
>
> - should not have the "!root_sudo" option set
>
> $ sudo cat /etc/sudoers | grep root_sudo || echo no
> no
>
> Also check,
>
> On Mon, 27 Sep 2010 22:44:07 -0400, Tom H wrote:
>
>> Do you have an "/etc/pam.d/sudo" file? Can another user use sudo? Any
>> hint about the reason for the failure in "/var/log/auth.log"?
>
> Thanks again.
You're welcome.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=wHezFLBGK+Lk3Fv6=rjSJwK5e8DtE=AK+t9L+@mail .gmail.com">http://lists.debian.org/AANLkTi=wHezFLBGK+Lk3Fv6=rjSJwK5e8DtE=AK+t9L+@mail .gmail.com
09-28-2010, 07:01 AM
Alexander Hintzer
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@yahoo.com> 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:~# 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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org