[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: su: Permission denied, (Ignored)



also sprach Ben Hutchings <ben.hutchings@businesswebsoftware.com> [2004.11.23.1442 +0100]:
> >stat64("/root", {st_mode=S_IFDIR|0700, st_size=116, ...}) = 0
> >stat64(".", 0xbffffa00)                 = -1 EACCES (Permission denied)
> >brk(0)                                  = 0x80ec000
> >brk(0x80ee000)                          = 0x80ee000
> >getcwd("/root", 4096)                   = 6
> >getpid()                                = 15728
> >getppid()                               = 15727
> >stat64(".", 0xbffffa30)                 = -1 EACCES (Permission denied)
> <snip>
> >The failing call seems to be a stat of the CWD, which is /tmp,
> <snip>
> 
> The cwd here is /root (though I don't see why) and collector presumably 
> doesn't have execute permission on /root so it can't even look up ".".

Yeah, this makes sense. But why is the cwd root? How can this
happen?

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, user, and author
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


Reply to: