 |
 |
 |
 |
| Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc. |

1st February 2007, 04:14 AM
|
|
Registered User
|
|
Join Date: Nov 2004
Location: Auburn, IN
Posts: 30

|
|
|
vsftpd doesn't work when started automatically, but works started manually
If I have vsftpd started by "services vsftpd start", I am able to ftp to localhost, but no user names or passwords work. If I log in as root and start vsftpd via ./vsftpd from its directory, my usernames and passwords work just fine. In the vsftpd.conf file, I've disabled anonymous users, so only actual usernames and passwords should work. How do I get it to start properly via the automatic method?
Thanks,
Ryan
__________________
Ryan
|

1st February 2007, 05:20 AM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
su -
chkconfig vsftpd on
service vsftpd restart
You have local_enable=YES?
Oh, its not working for me either... Searched in googled, linked to linuxquestion.org.
This works for me, Selinux default doesn't let you use your home account.
From: http://www.linuxquestions.org/questi...d.php?t=432558
************************************************** ************
in fedora core 5 i believe this can be fixed by going to Security Level and Firewall then the SELinux tab. Then click modify SELinux Policy, ftp and make sure "Allow ftp to read/write in the user home directories" is checked.
Or, just use
/usr/sbin/setsebool -P ftp_home_dir 1
That worked for me.
************************************************** ************
|

1st February 2007, 05:21 AM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
|
I used the Security Level and Firewall part.
|

1st February 2007, 01:26 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Location: Auburn, IN
Posts: 30

|
|
|
Thanks guys,
I'll try that tonight when I get home.
Yea, I have local_enable = YES. Come to think of it, the error was something along the lines of my home directory, but I didn't think it had to do with something other than vsftpd since it works as a standalone process.
I wonder why it works when I start the program manually, but not when it is started by inetd? Does the SELinux only apply to processes started automatically or through the inetd?
__________________
Ryan
Last edited by oryan_dunn; 1st February 2007 at 01:29 PM.
|

1st February 2007, 05:22 PM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
|
Ok, lets go back to the begining. I thought you mentioned vsftpd doesn't start automatically, assumed at bootup.
Anything in "chkconfig xxxx on' triggers to startup at bootup.
chkconfig vsftpd on
|

1st February 2007, 10:43 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Location: Auburn, IN
Posts: 30

|
|
|
It starts automatically at boot and when usings services vsftpd on, but logins fail.
__________________
Ryan
|

1st February 2007, 10:44 PM
|
 |
Registered User
|
|
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168

|
|
|
Did you:
"going to Security Level and Firewall then the SELinux tab. Then click modify SELinux Policy, ftp and make sure "Allow ftp to read/write in the user home directories" is checked."
|

2nd February 2007, 09:41 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Canada
Age: 38
Posts: 12

|
|
install pureftp or proftpd  better ftp servers
__________________
http://www.linuxnetworkcare.com
Affordable Linux Server Managament Solution
Contact :[ AIM : xerophytev] [ICQ : 172194209][ Phone : 1+877 - 247-7973 ]
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 07:59 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|