LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-30-2009, 07:02 PM   #31
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55

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.
 
Old 08-30-2009, 07:55 PM   #32
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,294

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
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.
 
Old 08-30-2009, 09:51 PM   #33
anirvana
Member
 
Registered: Mar 2007
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System gets hanged when i enter into /home directory [FC3] scandalouskk Linux - General 9 05-05-2009 09:40 PM
fopen a file in home directory Four Programming 2 04-07-2007 04:52 PM
need to link a home directory to an apache directory Melsync Linux - Server 3 09-30-2006 05:08 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
how to locate file in home directory learnfast Linux - Newbie 3 03-14-2005 07:15 AM


All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration