LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2005, 05:58 PM   #1
yvesg
Member
 
Registered: May 2004
Distribution: SuSe v9.3 Professional
Posts: 33

Rep: Reputation: 15
vsftpd problem


I have 2 problems with my VSFTPD system.

I have 2 users. ie USER1 & USER2. Both have home directories with correct access rights set. (Read Write Execute for USER)
Homedirectories are named /home/user1 & /home/user2

All users are local, and are chrooted to their home dirs. Except that user1 is in the exception list of vsftpd and therefore not chrooted.
Both users are listed in the vsftpd.userlist

Now the problems:
USER1 has NO problems logging in and listing directories, BUT the user cannot upload files/make directory changes.

USER2 cannot login ! Every time i get the error the user is chrooted. (When I put user2 also in the chroot exception list, the user is able to log in.)

What is wrong ?

Here is my vsftpd.conf file:
--------------------------------------------------------


anon_world_readable_only=NO
anonymous_enable=NO

ftp_username=ftp
chmod_enable=YES

chown_uploads=YES
chown_username=root

chroot_local_user=YES

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/vsftpd.chroot_list
passwd_chroot_enable=YES

write_enable=YES

connect_from_port_20=YES
ftp_data_port=XX
listen_port=XX
pasv_min_port=XXXXX
pasv_max_port=XXXXX

dirmessage_enable=YES

listen=YES
tcp_wrappers=YES
background=YES

local_enable=YES

userlist_enable=YES
userlist_deny=NO
userlist_file=/etc/vsftpd/vsftpd.userlist

xferlog_enable=YES

local_umask=660

max_clients=6
max_per_ip=2

deny_email_enable=NO
banned_email_file=/etc/vsftpd/vsftpd.banned_emails

banner_file=/etc/vsftpd/vsftpd.banner

nopriv_user=nobody

secure_chroot_dir=/home/empty

force_dot_files=NO
hide_file={.*}

Last edited by yvesg; 08-10-2005 at 05:59 PM.
 
Old 08-11-2005, 03:47 PM   #2
yvesg
Member
 
Registered: May 2004
Distribution: SuSe v9.3 Professional
Posts: 33

Original Poster
Rep: Reputation: 15
In an update to my post:

When I create a subdirectory (via the console on the box) in the users homedirectory. The user is able to upload files via FTP in that subfolder. but on the root share, it still gives me access denied. And I still have that chroot thing
 
Old 08-11-2005, 06:32 PM   #3
yvesg
Member
 
Registered: May 2004
Distribution: SuSe v9.3 Professional
Posts: 33

Original Poster
Rep: Reputation: 15
Well, I've fixed the problem myself !!

This kept me busy for almost a week !
The only thing I needed to do was to DISABLE the SELinux security feature. This service kept all my config's from gooing wrong !

Everyting works now. VSFTPD, SAMBA, all of it !!

Can you f*** believe it ? Some stupid security feature.
 
  


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
vsftpd settingd and VSFTPD DEAD BUT SUBSYS LOCKED pc_copat Linux - Newbie 15 11-05-2009 10:31 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
Yet ANOTHER vsftpd problem munkies Linux - Software 4 08-01-2005 06:29 PM
VSFTPD with 500 oops :vsftpd: missing argv[0] mole_13 Linux - Newbie 0 05-04-2005 01:05 AM
vsftpd problem.. yenonn Linux - Networking 9 07-08-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 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