Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A few VSFTPD questions. Please help.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
heavydwitstyle
n00b
n00b


Joined: 24 Nov 2005
Posts: 44

PostPosted: Fri Aug 25, 2006 6:57 pm    Post subject: A few VSFTPD questions. Please help. Reply with quote

Hey everybody.

I'm going to be hosting a photo server for my coworker and therefore I needed to install an FTP server. I chose VSFTPD because of its simplicity and supposed "very secure" nature.

I installed the server with...

Code:

emerge -a vsftpd


I then made my changes to the default "/etc/vsftpd/vsftpd.conf.example" file, copied it to "/etc/vsftpd/vsftpd.conf"
and then started the server and added it to startup with...

Code:

/etc/init.d/vsftpd start
rc-update add vsftpd default


I created my ftp user and tested and I can create files/folders in their directory and so on. However I then typed
Code:

cd /

and hit enter and it let me complete the command and changed my current working directory. I DO NOT want this. I want the user that logs in to be jailed to their home directory of /home/*username*. Anybody know of a way I can do this? Any help on this matter would be greatly appreciated. If you also know of a way to control what users can FTP in that would help as well.

Thanks in advance.

Cheers,

David
_________________
Dual Core - Pentium D 805 - 2 x 2.66Ghz
2048MB DDR533 Crucial Memory
2x 320Gb WD SATA2
---
MacBook Pro running OS X 10.4.8
Back to top
View user's profile Send private message
heavydwitstyle
n00b
n00b


Joined: 24 Nov 2005
Posts: 44

PostPosted: Tue Aug 29, 2006 2:08 pm    Post subject: Reply with quote

*bump* Anybody? I really would like to get this server hardened a bit more but the documentation doesn't explain it well enough for me :S

Thanks in advance,

- Dave
_________________
Dual Core - Pentium D 805 - 2 x 2.66Ghz
2048MB DDR533 Crucial Memory
2x 320Gb WD SATA2
---
MacBook Pro running OS X 10.4.8
Back to top
View user's profile Send private message
Eirikg
n00b
n00b


Joined: 28 Aug 2006
Posts: 7

PostPosted: Tue Aug 29, 2006 3:23 pm    Post subject: Reply with quote

Good choise :) I run vsftpd on my maxtor shared storage

I advice you to read this, it may seem like a pretty basic ftp server, but its in fact pretty powerfull
http://vsftpd.beasts.org/vsftpd_conf.html

For your question look at "chroot_***"
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Tue Aug 29, 2006 3:33 pm    Post subject: Reply with quote

man vsftpd.conf
or see the example conf file
Code:
chroot_local_user=YES
works for me
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
heavydwitstyle
n00b
n00b


Joined: 24 Nov 2005
Posts: 44

PostPosted: Tue Aug 29, 2006 7:47 pm    Post subject: Reply with quote

Thanks guys, this is exaactly what I needed to see!

I was opening the man page of vsftpd itself.

Code:

man vsftpd


Which obviously didn't give me the info I needed.

Thanks again,

- Dave
_________________
Dual Core - Pentium D 805 - 2 x 2.66Ghz
2048MB DDR533 Crucial Memory
2x 320Gb WD SATA2
---
MacBook Pro running OS X 10.4.8
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Tue Aug 29, 2006 8:35 pm    Post subject: Reply with quote

Just a hint: *always* scroll at the bottom of a manpage - there you'll find most of the times some usefull to related man-pages ...

Greetz
swimmer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum