LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-26-2012, 06:12 AM   #1
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Rep: Reputation: Disabled
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.comg337905): 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
 
Old 03-26-2012, 07:43 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
553 code usually refers to permissions issue. Please check the permissions on the folder.
 
Old 03-26-2012, 07:57 AM   #3
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Yes I checked the permissions.. as i mentioned before i am able to create files and folders in that directory
 
Old 03-26-2012, 08:45 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
You mean to say you can create files and folders by physically logging into the system or using FTP console?
 
Old 03-26-2012, 11:01 AM   #5
uNicks001
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
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?
 
Old 03-27-2012, 07:00 AM   #6
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
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
Attached Files
File Type: txt vsftpd.txt (4.6 KB, 6 views)
 
Old 03-27-2012, 09:18 AM   #7
uNicks001
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
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.
 
Old 03-27-2012, 09:53 AM   #8
mail2vivek1
LQ Newbie
 
Registered: Sep 2011
Posts: 24
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
i put userlist option for a reason.. i just want to allow few user to access ftp.
 
  


Reply

Tags
ftp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ftp issue yasir453 Linux - Networking 1 04-08-2010 06:36 AM
ftp issue saurabh parli Linux - Server 4 05-28-2007 03:44 PM
ftp issue scbops Linux - Networking 3 04-17-2006 05:46 AM
New FTP Issue KrGAce Linux - Enterprise 2 01-13-2006 02:12 AM
ftp issue lomaree Linux - Security 2 07-09-2003 09:41 AM


All times are GMT -5. The time now is 09:43 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration