public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user]  Re: two identical /etc/sudoers -- only one works
  @ 2007-05-29 23:11 99%     ` Mike Edenfield
  0 siblings, 0 replies; 1+ results
From: Mike Edenfield @ 2007-05-29 23:11 UTC (permalink / raw
  To: gentoo-user

Mick wrote:
> On Tuesday 29 May 2007 22:04, Paul Varner wrote:
>> On Fri, 2007-05-25 at 20:14 -0700, maxim wexler wrote:
>>> picky@localhost ~ $ ls /
>>> ls: cannot open directory /: Permission denied
>>> picky@localhost ~ $
>> What does 'ls -ld /' and 'ls -ld /etc' return?
>>
>> Both of them should look like:
>> drwxr-xr-x 20 root root 4096 May 29 04:40 /
>> drwxr-xr-x 56 root root 4096 May 29 11:39 /etc
> 
> Oops! mine looks like this:
> 
> # ls -ld /   
> drwxrwxrwt 22 root root 648 Apr  6 18:44 /
> 
> What's wrong here?
> 
> PS. I do not suffer from Maxim's problem, but clearly something is wrong with 
> my access rights on the root directory?

Having root world-writeable looks a bit suspicious, 
especially if you don't remember doing it yourself. :)

The 't' bit on a directory just means that deletes in that 
directory are restricted to the superuser or file owner (as 
opposed to anyone with +w permissions to the directory). 
I'm not sure why that would affect sudo, or ls for that 
matter, unless it's something funny with how opendir() works?

You could try turning off the odd permsisions:

chmod o-wt /
chmod g-w /

and see if anything changes.

-- 
-- Mike

Still using IE? Get Firefox!
http://www.spreadfirefox.com/?q=affiliates&id=6492&t=1
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2007-05-26  3:14     [gentoo-user] Re: two identical /etc/sudoers -- only one works maxim wexler
2007-05-29 21:04     ` Paul Varner
2007-05-29 22:05       ` Mick
2007-05-29 23:11 99%     ` Mike Edenfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox