[Clfs-support] chroot, mount:: only root can do that

Joe Ciccone jciccone at gmail.com
Tue Aug 11 04:36:14 PDT 2009


Roy Bekken wrote:
> I get this error after I have entered the chroot environment and are
> about to 8.10.1. Mounting Additional Kernel
>
>
> $ mount -vt devpts -o gid=4,mode=620 none /dev/pts
> fails with “only root can do that”
>
> Anyone else experience this?
>
> $ whoami; id
> root
> uid=0(root) gid=0(root)
>
> I did s strace entering the chroot:
> # strace -f -o output.log setarch linux32 /usr/sbin/chroot "/mnt/clfs"
> /tools/bin/env -i \
>     HOME=/root TERM="${TERM}" PS1="\u:\w\$ " \
>     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
>     /tools/bin/bash --login +h
>
>
>   

> I see that geteuid return 501, that is user clfs. Even if I “su -”
> from my normal user or do ctrl+alt+f2 and login as root it return
> that... strange
>
>   

Just a thought... is the binary owned by uid 501 and +s? If so that
would cause it to be run as uid 501.



More information about the Clfs-support mailing list