Re: chroot question

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

 





On 04/21/2015 04:51 PM, Cameron Simpson wrote:
On 21Apr2015 15:34, jd1008 <jd1008@xxxxxxxxx> wrote:
As root, I ran
chroot --userspec=user2:user2 /home/user2
chroot: failed to run command ‘/bin/bash’: Permission denied

The dir /home/user2 has in it
all the *bin and *lib (links) and usr/*bin and usr/*lib files and subdirs.

So, what is chroot good for???

Hmm, on what platform? You posted to fedora and freebsd lists.

I would guess that there is some permissions problem with the copies of /bin/bash (and whatever libraries it links) such that user2 cannot run it, as suggested by the "Permission denied" message.

On Linux, strace can tell you about this.

BTW, loopback mounts are probably a better way to get specific stuff inside a chroot before you lock the door. No copies, and no permissions to preserve.

I asked the question on both lists in the hope of some
enlightening answer, but I am on FC21.



--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux