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.
Sorry, I forgot to include system information.
I am running Redhat 7.3 on a 2.4.18-3 kernel
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.
|All times are GMT -5. The time now is 09:57 AM.|