LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-14-2004, 03:48 AM   #1
ef_
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Rep: Reputation: 0
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.
 
Old 10-14-2004, 03:52 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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

Last edited by acid_kewpie; 10-14-2004 at 03:53 AM.
 
Old 10-14-2004, 04:00 AM   #3
ef_
LQ Newbie
 
Registered: Oct 2004
Posts: 8

Original Poster
Rep: Reputation: 0
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....
 
Old 10-14-2004, 05:57 AM   #4
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
I posted a response in your other thread.

Enjoy!
--- Cerbere
 
  


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
A strange question about chroot zxsmonkey Linux From Scratch 5 04-18-2005 11:19 PM
vsftp and chroot question blubbfish Linux - Security 2 10-04-2004 10:03 AM
chroot question akwida Linux From Scratch 8 11-05-2003 03:54 PM
First timer question on chroot timna Linux From Scratch 1 07-08-2003 01:04 AM
Another vsftpd/chroot question mattsavigear Linux - Security 9 12-15-2002 03:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 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
Open Source Consulting | Domain Registration