LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-25-2012, 12:54 PM   #1
z01krh
Member
 
Registered: May 2009
Posts: 34

Rep: Reputation: 0
vsftpd issue


I have a Ubuntu 12.04 server set up with vsftpd.
I can ftp to it from a client like FileZilla without any problems.
When I do it from a script on another server(redhat) it gets permission denied. Why can Filezilla do this yet my script can't. Filezilla defaults to passive mode and logs in fine.

ftp_file.sh /home/arch/ /tmp/backup.tgz
Connected to xxx.xxx.xxx.xx (xxx.xxx.xxx.xx).
220 (vsFTPd 2.3.2)
331 Please specify the password.
230 Login successful.
250 Directory successfully changed.
local: /tmp/backup.tgz remote: /tmp/backup.tgz
227 Entering Passive Mode (xxx,xxx,xxx,xx,241,10).
550 Permission denied.
221 Goodbye.


Code:
HOST=xxx.xxx.xxx  #This is the FTP servers host or IP address.
USER=adsdf      #This is the FTP user that has access to the server.
PASS=######   #This is the password for the FTP user.
remote_dir=$1
file_name=$2

ftp -inv $HOST <<EOF
user $USER $PASS
cd $remote_dir
put $file_name
bye
EOF

Last edited by z01krh; 06-25-2012 at 01:53 PM. Reason: solved
 
Old 06-25-2012, 01:54 PM   #2
z01krh
Member
 
Registered: May 2009
Posts: 34

Original Poster
Rep: Reputation: 0
solved my own issue.
forgot to turn on write enabled
sudo vi /etc/vsftpd.conf
# Uncomment this to enable any form of FTP write command.
write_enable=YES
 
  


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 issue MsFinni Linux - Software 6 09-30-2011 10:35 AM
Issue with vsftpd a4kata Linux - Newbie 3 09-21-2009 03:35 AM
vsftpd issue da1 *BSD 12 10-03-2007 03:43 PM
vsftpd.conf/chroot/vsftpd.chroot_list issue Jerman Linux - Security 2 06-01-2007 07:24 PM
VSFTPd 2.0.3 issue ksn_m Linux - Networking 0 12-13-2005 05:50 AM

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

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