Questions tagged [ftp]

The File Transfer Protocol

Filter by
Sorted by
Tagged with
1
vote
4answers
1k views

Remove special pattern ^M from script which got appended after FTP from windows to Unix

I send a Windows file using FTP to a Unix system and got appended ^M wherever a new line was intended, and I just want to remove them. One method which I can opt is to run dos2unix command. Can ...
0
votes
1answer
1k views

Get latest files with lftp

I would like to know if it was possible to download all latest files on an ftp server with lftp without downloading the older files. Examples; On my server I have /doc /vps /order/{id} /order/{id} /...
2
votes
3answers
15k views

vsftpd - ftp user cannot create folders

CentOS - I have created an ftp user that can log in remotely over the internet to the vsftpd server. Now I can log in via ftp, see all the directory listings (not limited/jailed) to any directory, ...
-1
votes
0answers
15 views

proFTPd with MySQL support, cannot change directory ('CWD' command)

I followed the tutorial “Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Fedora 9” (https://www.howtoforge.com/virtual-hosting-with-proftpd-and-mysql-fedora9) to install proFTPd on Red Hat ...
0
votes
1answer
35 views

What happened to the “-4” option for command line FTP?

It used to be that you could force command line FTP to use IPv4 like so: ftp -4 ftp.example.com However, at some point in the relatively recent past the "-4" (and for that matter, the "-6") option ...
0
votes
0answers
23 views

Is it posible to automatic change password for a synology user everyday?

So my question is if its possible to change a password for a user/ftp user every day and save it or email it out. We have an FTP public user that we want to have dynamic password change every day so ...
0
votes
1answer
2k views

FTP Permissions in Linux (vsftpd)

Let's suppose I have a user called user1 and his home directory is on: /home/user1. All files on that directory need to be 750 (chmod -R 750 /home/user1). I installed vsftpd so I can manage my files ...
3
votes
0answers
29 views

Restrict special user and host of the ftp in the Linux Instance

I am using WinScp for connecting FTP to a Linux Instance and I want to restrict special user and host. I installed plesk on my Linux EC2 instance and I thought it uses proftpd for ftp service and ...
0
votes
1answer
3k views

How to login to SFTP server using pem file which have password?

I have given below details of an SFTP server to login. ipaddress, username, password, port(8800), password protected ppk file. I tried the following command to login to server but unable to connect.(...
2
votes
2answers
3k views

vsftpd closes conntion with code 421 when listing directory content

I am currently struggling with some kind of connection problem with vsftpd. I am using an arch linux and have vsftpd version 3.0.3 installed. I don't use iptables or anything. When I connect to my ...
0
votes
0answers
17 views

Is there an easy way to restrict users to their home directory using NFS?

With FTP you can configure the vsftpd.conf file and use "chroot_local_user=YES" to restrict users to their home directory. Is there a way to do something similiar but with NFS? (network file system) ...
3
votes
1answer
33 views

Restrict special user and host of ftp in the Linux Instance

I am using WinSCP for connecting ftp to Linux Instance and I want to restrict special user and host. I install plesk on my Linux Ec2 instance and I thought it is using proftpd for ftp service and ...
4
votes
8answers
14k views

VSFTPD FileZilla GnuTLS error -15 (unexpected TLS packet was received)

I set up two new CentOS 7 boxes simultaneously, so the configurations should be identical, just different ip addresses and host names. I installed VSFTPD and configured for passive ports. One box ...
1
vote
0answers
17 views

How can I set the FTP prompt?

I using Ubuntu 18.04 from WSL and using the default Ubuntu FTP client. The man page mentions setting $FTPPROMPT which I have done in my .bashrc on my local machine and then sourced that file. $ echo $...
0
votes
4answers
16k views

Centos: VSFTPD not Starting

I have a minimal install of Centos in VirtualBox. I want to run a ftp service to share files between the host and my VM, and then learn about ftp servers. I installed vsftpd and changed the vsftpd....
31
votes
5answers
180k views

Iptables to allow incoming FTP

I want to allow incoming FTP traffic. CentOS 5.4: This is my /etc/sysconfig/iptables file. # Generated by iptables-save v1.3.5 on Thu Oct 3 21:23:07 2013 *filter :INPUT ACCEPT [0:0] :FORWARD ...
1
vote
4answers
9k views

Why can't I access to my ftp server with my local user account?

First of all I'm using Centos 6 server, putty and wordpress.org I followed the instructions from this link to set up vsftpd and ftp in centos server. For the vsftpd.conf file, these were the changes ...
2
votes
1answer
2k views

Two vsftpd instances - check passive port on FTPS

I have configured VSFTPD in a CentOS machine to run on two instances, with vsftpd.conf and vsftpd2.conf. Here the content of the second conf file: anonymous_enable=NO chroot_list_enable=YES ...
2
votes
1answer
1k views

permissions on ftp'd files don't seem to match umask

I've read several postings indicating that ftp respects the user's umask. I don't see that that is the case. this is what happens on my server X when I FTP a file from SystemX, to SystemX. SystemX is ...
-1
votes
1answer
23 views

Need help with firewall - Accept FTP connections from outside

I am hoping you can help out. Our DevOps guy is out of the office at our agency and our partners need access to our FTP. We have it locked down to our office but need to open it so that people outside ...
0
votes
0answers
19 views

Error while copying a file from source to destination server

I'm getting the below error while trying to copy the file from a remote server to another server using ftplib(jenkins job).In my local it is working fine. In the Python code i'm downloading the text ...
0
votes
0answers
19 views

FTP transfer shows complete which is not true

We have linux machine and we see while doing FTP from the Client to the FTP Server it comes out saying complete as follows but it uploads only some portion of the file. I don't see any broken error ...
1
vote
1answer
3k views

How to change FTP home directory in Centos 6

I have created one Linux CentOS 6 instance in Amazon EC2 and installed cPanel on it and started running my websites there. The issue I face was when I try to FTP to the instance with the following ...
0
votes
1answer
1k views

How to limit a ftp user to only a given subdirectory?

I know this question is posted many times on StackExchange, but none of the solutions worked for me. I use vsftpd server on ubuntu and I want to restrict the access (read-only) for a user to a given ...
0
votes
0answers
31 views

How to look for directory in http address

I'm trying to create a regex formula in shell script which will allow me to find desired folder in HTTP directory. Let's assume that this is the address: ftp://google.com/directories/ In this ...
0
votes
0answers
82 views

FTP listing files (ls) with dynamic date YYYMMDD pattern

Following a previous answer I'm trying to list the files on an FTP server that match a pattern, as shown below event_date=`date +%Y%m%d` ftp -n XX.XX.XX.XX <<END_SCRIPT ls *${event_date}* ...
-2
votes
1answer
175 views

ftp: connect : Connection refused error in Debian

I'm new to virtual machines. I'm trying to connect metaploistable machine from debian machine through ftp. But my Debian machine is refusing to connect. The following image shows the commands typed ...
2
votes
1answer
1k views

Unable to transfer files (put) using ftp or filezilla from windows to ubuntu VM

I've setup a ubuntu 64 bit VM (16.04) using Oracle VirtualBox. Using ftp, I am able to connect to the VM. I am also able to list (ls) the contents of the folder. However I am unable to put files to ...
31
votes
11answers
201k views

VSFTPD, 553 Could not create file. - permissions?

I've set up VSFTPD on Amazon EC2 with the Amazon Linux AMI. I created a user and can now successfully connect via ftp. However, if I try to upload something I get the error message "553 Could not ...
-1
votes
1answer
4k views

Debian, ftp user with access to /var/www

I want to have ftp user who have only access to /var/www and work on all of files, but the problems arise when I give permission to /var/www, exactly chown. I try with chgrp but then I cannot edit ...
7
votes
1answer
713 views

Scripting FTP transfers

Is there a way to shebang-ify ftp and write small FTP scripts? For example: #!/usr/bin/ftp open 192.168.1.1 put *.gz quit Any thoughts?
2
votes
1answer
1k views

How to edit files with VIM through FTP

I'm trying to use: vim ftp://user@hostname// - this gives me a correct directory tree, but when I try to open given file, by pressing Enter, at the first time - nothing happens (just cursor jumps to ...
0
votes
1answer
23 views

adding FTP user without changing owner of directory?

Sorry, but this is probably a terribly stupid question. I'm running a Linux2 instance on AWS. I have a number of sites running there, including a couple of wordpress sites. One of the sites wants an ...
0
votes
2answers
755 views

Scripting a file move on an FTP Server

I'm attempting to move multiple files on an FTP server to a different directory. So far, I've written a bash script that will login and retrieve any new files in the remote directory but the ftp ...
44
votes
5answers
375k views

How to create a FTP user with specific /dir/ access only on a Centos / linux installation

So I'm on a VPS - CentOS Linux installation. I have vsFTPd on the server. I currently have SFTP access to the server via my root user, but am now trying to create a new user with FTP access to a ...
0
votes
0answers
12 views

Grant permission to ftp user in other directories

I need a user that I created in my ftp server to access other directories. Example, the tech user was created in the following way: useradd -s /sbin/nologin -c "FTP user for mail accounts" -G mailg ...
2
votes
1answer
101 views

Check if the file has been successfully transferred to the destination with SFTP

We have a daily process which moves file from 1 server to another via FTP using a script. Please find the snippet below: fileTransferToDEST() { ftp -inv $DEST_IP 1>$2 <<END_SCRIPT quote USER ...
1
vote
1answer
244 views

Transferring files via Binary mode in SFTP

While using FTP we can use the option bi to transfer files in binary mode however I am unable to find similar option in SFTP. Please find my code snippet below.. fileTransferToDEST() { echo "mput $4/$...
1
vote
1answer
1k views

Linux LiveCD Server with FTP & SSH Services

Could anyone please suggest me a LiveCD (Linux Based) with SSH & FTP Services. Basically I don't want to install anything on my laptop so I just want to boot LiveCD with FTP/SSH services so I can ...
0
votes
1answer
68 views

File is not sent via ftp - error: “The parameter is incorrect”

This is the bash code: ftp -n <ftpadress> <<EOT <credentials> binary put $pathfile$reportfile $remotepath$reportfile put $pathfile$logfile $remotepathlog$logfile quit EOT This is ...
0
votes
1answer
56 views

RH 7.5 Linux using curl with sftp to pull multiple files ending in a particular file extension

I am in a Red Hat Linux 7.5 environment. I am trying to write a curl script to pull/receive any file from a folder that ends with a particular file extension. Previously, I have written a script to ...
0
votes
0answers
24 views

Hide folder that user uses currently

I'm searching for a ftp server or any idea to achieve hiding folder from others when somebody is working in it. For example: I have 3 folders: A B C when I working in A, anybody who is also connected ...
1
vote
0answers
32 views

How can I lock an FTP user to their home directory?

I have found some help regarding locking an FTP user to their home directory, but after following steps, I find I'm still able to run cd .. and exit that directory and browse the file system. I'm ...
0
votes
0answers
15 views

Errors uploading files using an ftp client written in C using sockets

I wrote an ftp client in C using sockets, and a convenient API made by hubenchang0515 on GitHub called libftpclient. I followed the demo.c file shown in the repository; when I'm using the put command ...
24
votes
5answers
36k views

Why does SCP hang on copying files larger than 1405 bytes? [duplicate]

I'm trying to copy a file from one of my local machines to a remote machine. Copying a file with size upto 1405 bytes works fine. When I try to scp a larger file, the file gets copied but the scp ...
0
votes
0answers
33 views

Run 2 instances of vsftpd and in the second instance have users accessing to their own home folder

I need to run 2 vsftpd instances, which one is used for admin purposes and the other one for granting access to users (virtual users should be better) who should be able to access only to their home ...
0
votes
0answers
15 views

Storage object access with docker FTP getting error 550

I'm actually using an object storage from scaleway. I want to be able to access it with ftp and be able to do some action. Right now I can access and view files/folders from it, but I can't do action, ...
0
votes
1answer
236 views

Why does vsftp return 530 incorrect login?

I started a vsftpd server on my arch linux desktop and then tried to log in to it using using my normal user. But I get "530 Login incorrect" when I attempt to log in: $ systemctl start vsftpd $ ...
1
vote
1answer
28 views

Curious (possibly dim) question on ftp

I am trying to use ftp to transfer the contents of 2 directories on my local machine (PI-jessie) to a website. The script successfully changes to the first local & remote directory and uploads the ...
22
votes
3answers
42k views

How do I use implicit FTP over TLS

Using any FTP client (I'm on Ubuntu 12.04 and tried using lftp), I want to be able to make an implicit TLS connection to a FTP server, but I can't quite manage to successfully connect. All I am ...