LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 03-24-2009, 06:22 PM   #1
roy-arne
LQ Newbie
 
Registered: Sep 2008
Posts: 26
Thanked: 0
Jailing users to directory does not work


[Log in to get rid of this advertisement]
Hi,
I've used vsftpd before without problems. But now I can't jail users to my ftp directory. Can anyone find a error in this config?

listen=yes
listen_port=<myport>
pasv_min_port=<myport>
pasv_max_port=<myport>
connect_from_port_20=no
anonymous_enable=NO
pasv_enable=YES
local_root=/mnt/ftproot/

local_enable=yes
write_enable=yes
dirmessage_enable=yes
local_umask=000
file_open_mode=0777

xferlog_enable=yes
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=yes

idle_session_timeout=600
data_connection_timeout=120

ftpd_banner= myftp
chroot_local_user=yes

ssl_enable=yes
ssl_tlsv1=yes
ssl_sslv2=yes
ssl_sslv3=yes
secure_chroot_dir=/var/run/vsftpd

pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
roy-arne is offline  
Tag This Post
Reply With Quote
Old 03-25-2009, 01:14 PM   #2
clownbird
LQ Newbie
 
Registered: Mar 2009
Posts: 8
Thanked: 0
Here's an example from httpd.conf:

<VirtualHost xxx.xxx:21>
FTP On
DocumentRoot "C:/ftp"
FTPJailuser On
<Directory "C:/ftp">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Sorry, would delete if I could.

Last edited by clownbird; 03-25-2009 at 01:17 PM..
clownbird is offline     Reply With Quote
Old 03-25-2009, 03:10 PM   #3
roy-arne
LQ Newbie
 
Registered: Sep 2008
Posts: 26
Thanked: 0

Original Poster
Quote:
Originally Posted by clownbird View Post
Here's an example from httpd.conf:

<VirtualHost xxx.xxx:21>
FTP On
DocumentRoot "C:/ftp"
FTPJailuser On
<Directory "C:/ftp">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Sorry, would delete if I could.
Hum... maybe a moderator could delete the post?
roy-arne is offline     Reply With Quote
Old 03-25-2009, 06:07 PM   #4
clownbird
LQ Newbie
 
Registered: Mar 2009
Posts: 8
Thanked: 0
Does vsftpd ship with most distributions?

Last edited by clownbird; 03-25-2009 at 06:11 PM..
clownbird is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to validate users against Directory Users in RHEL4 Felipe Red Hat 0 10-27-2006 07:39 AM
Active directory users to Samba users alexpacio Linux - Networking 0 05-19-2006 09:44 AM
Jailing users with ProFTPd bullium Linux - Security 4 03-25-2005 04:00 PM
user jailing ? SiLiCoN Linux - Security 3 10-09-2004 03:20 AM
Jailing SFTP Users to Home directory Jason_25 Linux - Networking 3 01-06-2002 09:32 PM


All times are GMT -5. The time now is 07:20 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration