Gentoo Archives: gentoo-user

From: Mike Edenfield <kutulu@××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: two identical /etc/sudoers -- only one works
Date: Tue, 29 May 2007 23:18:18
Message-Id: 465CB32C.40701@kutulu.org
In Reply to: Re: [gentoo-user] Re: two identical /etc/sudoers -- only one works by Mick
1 Mick wrote:
2 > On Tuesday 29 May 2007 22:04, Paul Varner wrote:
3 >> On Fri, 2007-05-25 at 20:14 -0700, maxim wexler wrote:
4 >>> picky@localhost ~ $ ls /
5 >>> ls: cannot open directory /: Permission denied
6 >>> picky@localhost ~ $
7 >> What does 'ls -ld /' and 'ls -ld /etc' return?
8 >>
9 >> Both of them should look like:
10 >> drwxr-xr-x 20 root root 4096 May 29 04:40 /
11 >> drwxr-xr-x 56 root root 4096 May 29 11:39 /etc
12 >
13 > Oops! mine looks like this:
14 >
15 > # ls -ld /
16 > drwxrwxrwt 22 root root 648 Apr 6 18:44 /
17 >
18 > What's wrong here?
19 >
20 > PS. I do not suffer from Maxim's problem, but clearly something is wrong with
21 > my access rights on the root directory?
22
23 Having root world-writeable looks a bit suspicious,
24 especially if you don't remember doing it yourself. :)
25
26 The 't' bit on a directory just means that deletes in that
27 directory are restricted to the superuser or file owner (as
28 opposed to anyone with +w permissions to the directory).
29 I'm not sure why that would affect sudo, or ls for that
30 matter, unless it's something funny with how opendir() works?
31
32 You could try turning off the odd permsisions:
33
34 chmod o-wt /
35 chmod g-w /
36
37 and see if anything changes.
38
39 --
40 -- Mike
41
42 Still using IE? Get Firefox!
43 http://www.spreadfirefox.com/?q=affiliates&id=6492&t=1
44 --
45 gentoo-user@g.o mailing list