LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-18-2003, 09:54 PM   #1
Agento-
LQ Newbie
 
Registered: Jan 2003
Location: Montana
Distribution: Redhat 7.3
Posts: 10

Rep: Reputation: 0
Question Executing bash through a symlink


Hey, I'm trying to setup a chrooted enviroment. I am using "Jail Chroot Project 1.9". I made a basic chroot enviroment that i have added software too (including bash).

When i add a new user, I create a new /home/username directory and also add that as a new chroot enviroment.

What i want to do is to link my main enviroments folders like bin, lib, usr, var to each users home directory, so one change will be effective for all chrooted users. I have tried to do this by making hardlinks and I get permission denied(main enviroment and individual enviroments are on the same partition). If i do it with symlinks it appears to work fine but when i go to login as a user, it says "Jail: can't canonize path "/bin/bash". Bad path?"

Yet if i cd to /home/test/bin, the bash executable is in the listing.

Anyone have any ideas.

Agento-

Last edited by Agento-; 01-19-2003 at 01:36 AM.
 
Old 01-18-2003, 10:00 PM   #2
Agento-
LQ Newbie
 
Registered: Jan 2003
Location: Montana
Distribution: Redhat 7.3
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry, I forgot to include system information.

I am running Redhat 7.3 on a 2.4.18-3 kernel
 
Old 01-19-2003, 07:52 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
When doing chroot(/home/username) #set root
from that point on /bin is /home/username/bin, which should reflect in the users passwd file, which resides at /home/username/etc/passwd, the $PATH statement.

Please don't waste threads like you do here, you already have got a thread running about this problem.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I can't login Solaris 10!error information:"no default project!" rawbean Solaris / OpenSolaris 4 02-10-2010 06:49 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
chroot to md0 for "rescue" from live CD??? f1d094 Ubuntu 0 06-13-2005 07:38 AM
serving website from inside chroot "Permissions" jeffpoulsen Linux - Security 1 07-01-2004 01:55 PM
chroot() - not able to "create" a jail --TOL-- Linux - Security 7 05-23-2002 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:32 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