From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1F5ZeC-0004vs-1d for garchives@archives.gentoo.org; Sun, 05 Feb 2006 02:29:04 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k152RriF013416; Sun, 5 Feb 2006 02:27:53 GMT Received: from flower.jolet.net (cpe-24-27-31-221.austin.res.rr.com [24.27.31.221]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k152Np5C019709 for ; Sun, 5 Feb 2006 02:23:52 GMT Received: from localhost (localhost.localdomain [127.0.0.1]) by flower.jolet.net (Postfix) with ESMTP id 21D3618041 for ; Sat, 4 Feb 2006 20:24:02 -0600 (CST) Received: from flower.jolet.net ([127.0.0.1]) by localhost (flower.jolet.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26212-04 for ; Sat, 4 Feb 2006 20:24:01 -0600 (CST) Received: from [192.168.1.51] (unknown [192.168.1.1]) by flower.jolet.net (Postfix) with ESMTP id 56D9B18037 for ; Sat, 4 Feb 2006 20:24:01 -0600 (CST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <7573e9640602041756r60d662dcr125b1f117be19a1f@mail.gmail.com> References: <7573e9640602041756r60d662dcr125b1f117be19a1f@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <41A48B77-EF72-4267-B96A-070D1598969D@jolet.net> Content-Transfer-Encoding: 7bit From: John Jolet Subject: Re: [gentoo-user] permissions problem Date: Sat, 4 Feb 2006 20:24:08 -0600 To: gentoo-user@lists.gentoo.org X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at jolet.net X-Archives-Salt: 7777c90c-dd74-41f2-97a1-879dbddf8924 X-Archives-Hash: 487ab74f736a0433085b7e7f64a5ef6c On Feb 4, 2006, at 7:56 PM, Richard Fish wrote: > On 2/4/06, John Jolet 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