LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to link home directory to different file-system (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-link-home-directory-to-different-file-system-750664/)

karamarisan 08-30-2009 07:02 PM

I dunno; what you're asking for doesn't really make sense. If the actual chroot is put into user2's .shellrc, he could exit out of it whenever...?

If you want to get back out to the main filesystem, a chroot isn't what you want. Think about this - it's designed to limit users. Conversations about how to get out of a chroot are typically discussions of why you shouldn't be relying on this for security, not how to add more functionality to it.

chrism01 08-30-2009 07:55 PM

Agree with karamarisan: what the OP is asking for makes no sense.
Either you want user2 jailed or you don't
In either case, don't even think of putting him 'under' another user.
Give him his own user.
If you want him to usually be a normal user, but sometimes needs higher privs, you should be looking at sudo.

anirvana 08-30-2009 09:51 PM

Thanks all.


All times are GMT -5. The time now is 06:15 PM.