Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Set permission to NO browse out of /home directory, Can this be done?< Next Oldest | Next Newest >
icpeanuts Offline





Group: Members
Posts: 32
Joined: Jan. 2006
Posted: Jan. 22 2006,06:56 QUOTE

I am new to linux and DSL.

I have a quick question. I want to set it so user can not browse out of the /home directory when the user access the server via FTP on the BetaFTP server. Can this be done?

Thanks for your help.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 22 2006,13:13 QUOTE

icpeanuts, I tried to do this but was unable to.  I believe you could create what is called a chroot jail, but I'm still try to work out exactly what you need to place inside the jail to make the usr name/password recognition for betaftpd to work.
Back to top
Profile PM 
icpeanuts Offline





Group: Members
Posts: 32
Joined: Jan. 2006
Posted: Jan. 22 2006,19:35 QUOTE

I downloaded Pure-ftpd instead and following their instruction to add /./ to the passwd file of the user and it worksl. I tried various method with betaftp. No outcome.
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Jan. 22 2006,20:00 QUOTE

Well, I looked around and found a bash script that can set up a nice chroot jail for dsl.  It's called make_chroot_jail.sh and it worked really well, from what I could tell.  It adds users and can update the needed libraries depending on what you need in the shell.  With a little bit of tinkering in the passwd file in the jail it creates you can have everyone who ftps in looking at the same directory.

I wish I understood the script better.  I'm still trying to figure out what I did wrong when I did it by hand, but if the script does it right, that's all I need.

EDIT: you can still see out of the home directory, but only as far as the extent of the chroot jail.
Back to top
Profile PM 
icpeanuts
Unregistered






Posted: Jan. 24 2006,05:19 QUOTE

Anyone have any simpler ways to do this? This should not be a big problem. Thanks in advance.  :D
Back to top
10 replies since Jan. 22 2006,06:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Set permission to NO browse out of /home directory

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code