Linux.com

Home Linux Community Forums Linux System Administration Linux Security Need to call chroot under normal unprevileged user

Need to call chroot under normal unprevileged user

Link to this post 26 Mar 10

Jaya,

Just how many forums have you posted this question to, anyway? I know of at least 3 or 4. The fact of the matter is, to do what you want is a gross violation of system security. You can set up the user's login to do a chroot when they first login to the system, but to allow something like a perl script the ability to do a chroot is just plain dangerous! Maybe if you described what your REAL problem is, we could make some suggestions on how to accomplish your real goals.

Link to this post 26 Mar 10

Hi,

Desperation to find answer made me to post in different forums . But this is the thing finally required, I need to add CAP_SYS_CHROOT capability to my user, because only users with CAP_SYS_CHROOT can call chroot. This will solve all my requirements . I guess I am making things look tough by saying all unwanted details.

Thanks,
Jai

Link to this post 29 Mar 10

HI finally we planned to over write the chroot method through LKM , guessing that will solve our problem.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board