public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: John Jolet <john@jolet.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] permissions problem
Date: Sat, 4 Feb 2006 20:24:08 -0600	[thread overview]
Message-ID: <41A48B77-EF72-4267-B96A-070D1598969D@jolet.net> (raw)
In-Reply-To: <7573e9640602041756r60d662dcr125b1f117be19a1f@mail.gmail.com>


On Feb 4, 2006, at 7:56 PM, Richard Fish wrote:

> On 2/4/06, John Jolet <john@jolet.net> wrote:
>> Okay, I give up.  I've been struggling with a couple of very, very
>> strange permissions problems for months.  I just finished an emerge -
>> e system and emerge -e world hoping it would fix it.  first problem:
>> trying to use sudo, but it keeps saying "can't open sudoers file,
>> permission denied".  even if i'm root doing sudo it tells me that.
>
> Try doing "strace sudo ..." as root.  That should at least tell you
> what system call is returning -EPERM.
>
okay, so I emerged strace and did that.  didn't find any "EPERM"  
thing, but did find this:
lstat64("/etc/sudoers", {st_mode=S_IFREG|0440, st_size=1643, ...}) = 0
setresgid32(-1, 0, -1)                  = 0
setresuid32(0, 1, 0)                    = 0
open("/etc/sudoers", O_RDONLY)          = -1 EACCES (Permission denied)
geteuid32()                             = 1
setresuid32(0, 0, 0)                    = 0
write(2, "sudo: ", 6sudo: )                   = 6
write(2, "can\'t open /etc/sudoers", 23can't open /etc/sudoers) = 23


which just says permission denied, right?  am I missing something  
simple here?  i mean, root can read anything, right?
> -Richard
>
> -- 
> gentoo-user@gentoo.org mailing list
>

-- 
gentoo-user@gentoo.org mailing list



  reply	other threads:[~2006-02-05  2:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-05  0:39 [gentoo-user] permissions problem John Jolet
2006-02-05  1:56 ` Richard Fish
2006-02-05  2:24   ` John Jolet [this message]
2006-02-05  2:59 ` Jerry McBride
2006-02-05  6:58   ` Richard Fish
  -- strict thread matches above, loose matches on Subject: below --
2023-08-15 14:55 [gentoo-user] Permissions problem Peter Humphrey
2023-08-15 16:38 ` Stefan Schmiedl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41A48B77-EF72-4267-B96A-070D1598969D@jolet.net \
    --to=john@jolet.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox