LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Chroot - question (https://www.linuxquestions.org/questions/linux-software-2/chroot-question-242478/)

ef_ 10-14-2004 03:48 AM

Chroot - question
 
Hi,
I tried to use chroot.

I insert this command at the /etc/profile file because I want that every time a user will be log on to the system he will be restricted.
the problem is that this command is working only if I log on as a root, because I don't have permissions to use chroot from other user.
How can I solve this , is there way to write in the file something that will say " maniooulate this command as if u are a root or something" ?

and another quest', I notice that when in a root I manioulate the chroot, I can write exit and this is exit from the chroot.

I wantnot to enable the user to exit the restricted area, is there way in which when he write exit to finish the task / terminal.


many 10x.

acid_kewpie 10-14-2004 03:52 AM

there's exactly that.
Code:

chmod +s /sbin/chroot
but this isn't really a nice way to be going about things. there are real watertight ways to do this:
http://www.tjw.org/chroot-login-HOWTO/
http://kegel.com/crosstool/current/d...gin-howto.html

ef_ 10-14-2004 04:00 AM

Hi,
10x,

but when I writ it down in the /etc/profile file and log on as user (not as root - cause as root it is working) it still ignore me and don't do nothing....

Cerbere 10-14-2004 05:57 AM

I posted a response in your other thread.

Enjoy!
--- Cerbere


All times are GMT -5. The time now is 03:04 AM.