I'm logged in as the root user when I input the command #make_chroot_user.sh falko /bin/bash /home
Do I need sudo? or is there a user file I'm missing?
Main Topics
Browse All Topicsfollowed instructions for chrooting on
http://howtoforge.com/chro
http://www.fuschlberger.ne
And I get a boatload of fail most notably when attempting to create a new user/
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I'm logged in as the root user when I input the command #make_chroot_user.sh falko /bin/bash /home
In fact #make_chroot_user.sh falko
should be enough in linux systems in that:
- The default shell is /bin/bash
- The path /home is wrong this directory is not rootjail relative and it would try to create jail structure directly under /home. This is not desirable and/or possible due to file and directory permissisons.
ahhh hah, ok so should I just leave them blank? no that won't work I tried that already, you are supposed to be able to just add the user and the default would make the directories, but that errors out as it is...
Can I alter permissions on the home directory? Or do I need to make a separate directory to be the chroot, and then change the directory in the script?
Hi,
Ihave good news !!!!
I had my test Ubuntu linux server I decided to setup the script on it. I did and I've got the exactly same error as you've got.
Later I've tried to run the script this way and it worked !!:
/bin/bash make_chroot_jail.sh deneme
Yeah I did it : )) Just try yourself..
Please dont forget to add:
Match user deneme
ChrootDirectory /home/jail
to your /etc/ssh/sshd_config
Cheers,
K.
Business Accounts
Answer for Membership
by: KeremEPosted on 2009-05-15 at 13:39:34ID: 24399507
Hi,
Are you sure that you're running the script as root?