LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vsftpd (w/ Fedora Core 4) File Write Problems (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-w-fedora-core-4-file-write-problems-344083/)

kaireapr 07-17-2005 06:31 PM

vsftpd (w/ Fedora Core 4) File Write Problems
 
Hello.

I recently installed Fedora Core 4 with its server packages. I'm using vsftpd (which was installed with the FC4 distro) in attempt to set up a properly working FTP server. Here's what I've done:

(1) configured /etc/vsftpd/vsftpd.conf to denyi anonymous access, but allow local users to log in
(2) created a user "michaelgubbels" with home dir /home/michaelgubbels
(3) restarted vsftpd

I can log in successfully but when trying to create a directory or upload files I get an error message stating "550 Create directory operation failed."

Any ideas? I would appreciate help greatly on this issue.

Thanks.

hlyrad 07-18-2005 01:30 PM

More details are needed.
What client are you using?
What logging mode is enabled?
Post your vsftpd.conf

gnorman 07-19-2005 10:03 AM

When you first load the directory, do you start in /home/michaelgubbels?
or more like / or somewhere else? You might be trying to write to a directory other than michaelgubbels's which would cause permission issues.

If you can see the whole server when you should only see the users directory (when logged in as the user), you might want to check into the chroot options in the conf. file as well.

snoek 08-06-2005 04:17 PM

I've got exactly the same problem with vsftpd on Fedora Core 4

I've opened a Terminal window on the ftp server itself so there can't be any firewall issues

the user I'm using is oracle and his home is /home/oracle - I've set vstpd.conf to write_enable=YES and local_enable=YES

when I ftp and log in as oracle my path becomes "/home/oracle" as expected. I can "ls" and "get" successfully but as soon as I try to do a "put" or "mput" I get a 553 error. If I try to do a "mkdir" then I get a 550 error

I have set /home/oracle permissions to rwx for user group and other

I have no idea what else to try - can anyone please help!!

thanks very much

hlyrad 08-06-2005 11:09 PM

Check your log files. Also post your vsftpd.conf

gnorman 08-09-2005 07:57 AM

snoek-
check who owns the files that are in that home directory..

ls-la /home/oracle in a terminal window

example would be:

[root@LDC1 ~]# ls -la /home/admin
total 48
drwxr-xr-x 6 admin admin 4096 Aug 8 08:38 .
drwxr-xr-x 10 root root 4096 Aug 8 18:10 ..
-rw-r--r-- 1 admin admin 24 Aug 8 08:38 .bash_logout
-rw-r--r-- 1 admin admin 191 Aug 8 08:38 .bash_profile
-rw-r--r-- 1 admin admin 124 Aug 8 08:38 .bashrc
drwxr-xr-x 2 admin admin 4096 Aug 8 08:38 cgi-bin
-rw-r--r-- 1 admin admin 120 Aug 8 08:38 .gtkrc
drwxr-xr-x 2 admin admin 4096 Aug 8 08:38 homes
drwxr-xr-x 2 admin admin 4096 Aug 8 08:38 logs
drwxr-xr-x 3 admin admin 4096 Aug 8 08:38 public_html
-rw-r--r-- 1 admin admin 658 Aug 8 08:38 .zshrc

Make sure the owners match for user/group.
In my example admin is owner and also group

IF these aren't Oracle in your case, you will want to
chmod <files> oracle
chgrp <files> oracle

Could be way off but thats what I would check out!~

yvesg 08-11-2005 04:57 PM

I've got exactly the same problem here...

Since I've upgraded to FC4 nothing but problems

A. My tty's wont do it anymore
B. Samba is working against me
C. VSFTPD is totally out of control

D. I think I'm gooing to downgrad to FC3

uhuu 09-02-2005 06:52 AM

Same problem here, vsftpd worked in FC3, but not in FC4 ('550 errors' when uploading files).
Has anyone got it working in FC4?

Thanks.

PS going to look bug reports about vsftpd in FC4.

digity 09-05-2005 05:37 PM

i've also been having the same 550 and 553 error messages when uploading files and folders to my FC4 system. I'm using the default settings/vsftpd.conf file. strange cuz the default settings in FC3 worked from jumped.

any ideas???

yvesg 09-06-2005 05:18 PM

Since Fedora uses a kind of 'tripwire' system to prevent some files from beeing changed, this is enabled by default in FC4.
You need to disable this security setting, and everything should work. (At least it dit overhere, but now I'm running on SuSe9.3).
I believe it's somwhere with the firewall settings. (During installation you'll be prompted for this setting)

uhuu 09-07-2005 04:06 AM

I got my vsftpd working by:
1) disabled selinux (from system tools -> security level)
2) restored the default vsftpd.conf (asked from a friend)

Now all uploads and features work as expected.

digity 09-07-2005 05:20 PM

worked like a charm. thanx

PTrenholme 09-07-2005 06:21 PM

Wouldn't a better solution be to edit the SELinux settings so the specific users, groups, etc. have permissions to the specific areas they need to access. By disabling SELinux, you've (potentially) opened the door to your system fairly wide.

uhuu 09-09-2005 03:18 AM

Found a solution that does not require disabling the whole selinux:
http://www.fedoraforum.org/forum/sho...316#post321485

James_Ecker 09-29-2005 11:17 PM

Has anyone found a solution to the SELinux VSFTPd context problem?


All times are GMT -5. The time now is 04:18 PM.