LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-12-2016, 08:47 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
user in jail ( vsftpd )


Hi,
I want to put ftp user in jail ( with vsftpd)
I configured as it is said in the doc, /etc/vsftpd.conf:
chroot_local_user=YES


but when I tried to access it refused completly for the user, here:

Name (localhost:bela2): abdou
Password:
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Login failed.
421 Service not available, remote server has closed connection


I am using vsftpd 3.0.2-17 on debian jessie

Is there a bug ??
best regards
 
Old 03-12-2016, 10:51 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You need to use the following in vsftpd.conf:
Code:
allow_writeable_chroot=YES
Regards
 
Old 03-18-2016, 02:21 AM   #3
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
thanks a lot
that 's it !!
but in this case

it refuses the anonymous access


ftp localhost
Connected to localhost.
220 salam alykoum to FTP service.
Name (localhost:bela2): anonymous
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Login failed.
421 Service not available, remote server has closed connection



in fact I want to allow the anonymous access, and put the local user in jail!!
for the best security!!

regards
 
Old 03-18-2016, 04:28 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
it refuses the anonymous access
Please note that for anonymous ftp, you cannot have a writable anon_root directory.
So create a subbir (e.g. uploads), where anonymous can write and chmod 555 the anon_root directory

Regards
 
  


Reply



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
[SOLVED] vsftpd, file permissions and chroot jail mickaleen Linux - Server 14 08-28-2015 11:14 AM
Jail users using vsFTPD (help) carlodelmundo Linux - Newbie 6 12-28-2009 10:26 AM
vsftpd will not jail remote user kipthomas Linux - Software 3 09-09-2005 11:38 PM
Help with chroot jail - vsFTPd r042wal Linux - Software 1 06-05-2003 04:21 PM
vsftpd + redhat8 + jail Delvar Linux - Software 3 03-27-2003 11:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration