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

Re: passwd in chroot / You may not view or modify password information for USER



On Sun, Feb 25, 2007 at 10:07:48PM -0500, Nelson Castillo wrote:

> The partition in which the chroot is is not mounted with the nodev option.
> It's mounted with ext3,defaults, just as / is.
> 
> This is the strace I got:
> 
> http://wiki.superservicios.gov.co:81/~n/strace.txt

  Looking that over this appears to be a SELinux thing.

  The code obviously reads the current permissions of your
 user:

 open("/proc/self/task/25770/attr/current", O_RDONLY|O_LARGEFILE) = 4
 read(4, "user_u:system_r:unconfined_t:s0-"..., 4095) = 43
 close(4)                                = 0

  I'm not sure what that means..

  Later there are two file accesses which fail:

  open("/selinux/access", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
  open("/selinux/enforce", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)

  I'd suggest disabling SELinux and seeing if that fixes it, if it
 does then I guess you get to learn more about using it than I 
 wish to right now ;)

Steve
-- 
Debian GNU/Linux System Administration
http://www.debian-administration.org/



Reply to: