LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP issue (http://www.linuxquestions.org/questions/linux-newbie-8/ftp-issue-936455/)

mail2vivek1 03-26-2012 06:12 AM

FTP issue
 
Hello All,

I have configured vsftp server on my machine. and given chrooted access to user 'vivek'.. i am trying to upload one file but getting below error. i am able to browsethe directory, able to download files..also i am able to physically create a file in that directory


eux012{pg337905}# ftp nmxlccase.micron.com
Connected to nmxlccase.micron.com.
220 (vsFTPd 2.0.5)
Name (nmxlccase.micron.com:pg337905): vivek
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/"
ftp> put /home/pg337905/RATL_ENT_DEPLOY_1.4.4_LINUX_X32.zip
200 PORT command successful. Consider using PASV.
553 Could not create file.

ftp> ls -l
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r-- 1 0 0 0 Mar 26 09:37 abc



----------
config file
#anonymous_enable=YES (this is disabled)
local_enable=YES
write_enable=YES
local_umask=022
#anon_upload_enable=YES (this is disabled)
dirmessage_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

linuxlover.chaitanya 03-26-2012 07:43 AM

553 code usually refers to permissions issue. Please check the permissions on the folder.

mail2vivek1 03-26-2012 07:57 AM

Yes I checked the permissions.. as i mentioned before i am able to create files and folders in that directory

linuxlover.chaitanya 03-26-2012 08:45 AM

You mean to say you can create files and folders by physically logging into the system or using FTP console?

uNicks001 03-26-2012 11:01 AM

what are the permissions set to on the folder that you are ftp'ing to?

also in the vsftpd.conf file is this enabled? write_enable=YES

I have also seen similar issues due to file names(underscores, file extension...etc.) and/or length of filenames and file size.

what happens if you set the folder to 777 then ftp a small test file with a simple one word name?

mail2vivek1 03-27-2012 07:00 AM

1 Attachment(s)
Hi,

Yes, i am able to create file by using physically login in server (not by ftp)

I tried to give 777 permission to home directory, still it did not work :(

Attached is my vsftpd config file.

Please advise, i am so confused by trying lots of thing in this

uNicks001 03-27-2012 09:18 AM

the file seems fine. But I do see this in your file: userlist_enable=YES

this means that you are specifying which users can access the ftp site. do you have a userlist file with login names in it?

if you set it to NO it will disable looking for a userlist. dont forget to restart the vsftpd service.

mail2vivek1 03-27-2012 09:53 AM

i put userlist option for a reason.. i just want to allow few user to access ftp.


All times are GMT -5. The time now is 01:29 PM.