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

Roy Bekken roy.bekken at gmail.com
Tue Aug 11 04:50:15 PDT 2009


On Tue, Aug 11, 2009 at 1:36 PM, Joe Ciccone<jciccone at gmail.com> wrote:
> 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.
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>
Yes, I just realized that my self.
This should be changed in the book as I got the impression that this
was an optional step(8.6. Changing Ownership)



More information about the Clfs-support mailing list