date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,452,599,967,000
I have this file structure: > APPLICATION 1 >> CONTROLLER (@JuniorProgrammers) >> MODELS (symlink to SHARED/MODELS) >> VIEWS (@Designers) > APPLICATION 2 >> CONTROLLER (@JuniorProgrammers) >> MODELS (symlink to SHARED/MODELS) >> VIEWS (@Designers) > SHARED >> MODELS (@SeniorProgrammers) I need php to be able to read ...
Symlinks themselves have 777 because in Unix, file security is judged on a file/inode basis. If it's the same data they're operating on, it should have the same security conditions, regardless of the name you gave the system to open it. [root@hypervisor test]# ls -l total 0 lrwxrwxrwx. 1 root root 10 Jun 8 16:01 sym...
How Do I Block Read Access to a Symbolic Link?
1,452,599,967,000
Possible Duplicate: How to delete the oldest file over FTP using CURL? I need to connect to a remote server using a bash script and then delete all files within the directory that are older than 7 days. I'm trying to do this with a for loop within the FTP remote server and I get an error. #!/bin/sh HOST='www.ftps...
Either rewrite your script in: Perl, PHP or Python, as they all offer API's for FTP, else have a look at using expect. There are several tutorials around.
How to loop through each file in FTP directory using a bash script [duplicate]
1,452,599,967,000
I need to transfer a large number of files from an FTP server to a new server. There could be thousands of files so I would like to limit it to files that were uploaded in the last three months - is that possible and if so how? Also is it possible to find out how big the download is likely to be before you start the a...
You can use lftp for that, utilizing its mirror command. Here's a snip from the manpage: mirror [OPTS] [source [target]] Mirror specified source directory to local target directory. If target directory ends with a slash, the source base name is appended to target directory name. Source and/or target ...
Is it possible to transfer files in a date range via FTP
1,452,599,967,000
I've created a user called "ftp-acc" and limited it to a single directory using VSFTPD. When I login to the account in Filezilla using FTP, it is successfully restricted to a single directory. However, when logging in with the same credentials using SFTP, the user can access other directories as well. How can I disab...
First point , FTP and SFTP both are different. FTP normal file transfer protocol but SFTP is secure file transfer protocol and this service is from SSH not a stand alone service. If you want to disable SFTP for one user then open sshd_config file in server(machine you are trying to access) and DenyUsers ftp-acc and ...
How to disable SFTP for a user, but keep FTP enabled
1,452,599,967,000
I want to download multiple files from a FTP server (Android app). I used FTP client and mget command (Ubuntu Terminal). But it prompts me to enter y or n for every file that I want to download. I have 1000 files to download. I can not enter y for 1000 times to download 1000 files. I am searching for a solution to do ...
In interactive ftp mode you can use prompt before mget * This will assume y to all question. This feature of ftp has been around since "invention" of ftp.
How to download multiple files at a time using mget command from FTP Server without pressing y everytime?
1,452,599,967,000
What's the difference between anonymous and guest logins in vsftpd? Both can be enabled/disabled: anonymous_enable= guest_enable= Both are mapped to a different username: ftp_username= guest_username= Pretty much everything what I know is true for anonymous can be applied to guest. Then why guest exists if anonymous...
This quote describes it: guest_enable If enabled, all non-anonymous logins are classed as "guest" logins. A guest login is remapped to the user specified in the guest_username setting. Anonymous access is intended mainly for providing access to public files to everybody. Guests need a login/password. Guest f...
anonymous vs. guest logins in vsftpd?
1,452,599,967,000
I need to transfer files from my ftp to another, is there any tool to put two access and I transfer from one to another without downloading the files to my machine?
You can use a client that supports the FXP protocol, as described in one of the answers from this webmaster.stackexchange.com Q&A: How can I transfer files from one server to another server using FTP The following is from the SmartFTP Knowledge base: excerpt What Is FXP? FXP stands for File eXchange Protocol. It lets...
how to transfer files between two ftps
1,452,599,967,000
I'd been seeing that * isn't interpreted on ftp or lftp. Suppose I want to change a directory from current to say ./japan In ftp> of lftp>, if I give: $ cd jap* it would show this error: No such file or directory So, I'm forced to give the complete name: $ cd japan EDIT #1 @thomas, @gold: Thank you for your valuabl...
If you're using lftp you can use the Tab key to do path completion similar to the same method used when in a shell such as Bash or Zsh. If you continue to hit Tab as you type it will complete as much of what matches. You can continue to type additional characters from the results of what's left that matches what you'r...
* not interpreted in ftp, lftp?
1,452,599,967,000
I have this folder full of files. Once per day, I want the newest of the files to be FTPed automatically to a file server.
Make a short script, get the filename via this line: newestfilename=`ls -t $dir| head -1` (assuming $dir is the directory you're interested in), then feed $filename to your FTP command, and of course, cron this script to run once a day. If you have ncftp, you can use the following command to ftp the file: ncftpput -U...
What is a reliable way to automate FTP upload of 'the newest file in directory X'?
1,452,599,967,000
I want to backup a FTP directory (not backup to) with a cron script running daily. I'd prefer a solution that could sync the FTP to my local computer; only copy files changed and remove files that have been deleted. Is there such an application?
You can use curlftpfs and rsync to accomplish what you want. curlftpfs is a FUSE filesystem that will let you mount a remote ftp location as a normal filesystem. Once it's mounted, you can use rsync to sync the mount with a local copy.
Incrementally backup FTP to local computer
1,452,599,967,000
I'm trying to get a ProFTPD to LDAP auth on a Active Directory base. I still couldn't figure out what could be wrong with my configuration since, executing a LDAP query with ldapsearch seems fine proftpd.conf /etc/proftpd.conf # This is the ProFTPD configuration file ServerName "FTP and Ldap" Ser...
To achieve this, the URL must be RFC 2255 compliant and, using Proftpd queries will only work when they are filtered by an OU. These queries will not work at LDAP root level. LDAPServer ldap://domaincontroller.domain.net:389/??sub Organizational Unity: LDAPDoAuth on "OU=OFFICE,dc=domain,dc=net" (&(sAMAccountName=%v)(...
Configuring proftpd and mod_ldap.c query not working - any ideas?
1,452,599,967,000
I'm on CentOS v6.4 and using its native FTP Server, which i suppose is sftp. (Am i right?) Now i can use FTP well. But i need to log the actions taken by Users. Logs for the actions, such us, who logged in, who modified which files, who deleted which files .. etc the basically important actions, you know. So my simple...
You can log sftp, try this: In /etc/ssh/sshd_config file, change this line: Subsystem sftp /usr/libexec/openssh/sftp-server to: Subsystem sftp /usr/libexec/openssh/sftp-server -l INFO -f AUTH Then config syslog log facility AUTH to your file. In Centos 6. edit /etc/rsyslog.conf, add this line: auth...
(CentOS) default FTP (SFTP) Log File?
1,452,599,967,000
First of all: Why I'm trying this? Because we need to download some files AND rename to shorten ones with date "stamps". The remote files have really huge filenames and it's not an option to change(isn't our ftp). I'm trying to make a bulk download and rename of some files in a remote ftp server, without having to ope...
Well, i did some sort of mixed implementation, based on the answers of Stephane and slm. I couldn't use zsh because is a production server and installing a new shell is not an option, so, i used lftp that was installed: Explanation: On the first here_docs(FTPLISTGET) connect on the ftp server and list the files(nlist)...
FTP bulk download and rename
1,452,599,967,000
I just installed vsftpd according to these directions. I am trying to get ftp working on my Ubuntu box that is using Amazon AWS. When I first tried this directions, it did not work. I was trying to connect via FileZilla and Winscp from my windows machine to my Ubuntu server. When it failed, I tried adding these opti...
There is (obviously) manual page for vsftpd.conf, which is always a good place to start. TLDR version: They should be needed only for passive mode of FTP. pasv_enable Set to NO if you want to disallow the PASV method of obtaining a data connection. Default: YES pasv_address Use this option to override the IP addre...
What does pasv_enable and related fields mean in vsftpd.conf
1,452,599,967,000
I'm trying to download a file from ftp server using curl: curl --user kshitiz:pAssword ftp://@11.111.11.11/myfile.txt -o /tmp/myfile.txt -v curl connects to the server and freezes: * Hostname was NOT found in DNS cache * Trying 11.111.11.11... % Total % Received % Xferd Average Speed Time Time Time ...
Adding --disable-epsv switch fixed the problem. A little explanation: I just went through many hours of trying to figure out wierd FTP problems. The way that the problem presented was that after login, when the FTP client attempted a directory listing (or any other command), it would just hang. EPSV is "exte...
Curl freezes when downloading from ftp
1,452,599,967,000
I have some folder, need anybodies php scripts can create sub folder/files and unlink files. I do sudo chown -R apache:apache /var/www/public_html/a But after that, my ftp user cannot upload files in that folder. And I do sudo chown -R yulichika:users /var/www/public_html/a that ftp can access the folder, but anybodie...
You can use access control lists commands. First set owner apache to the directory sudo chown -R apache:apache /var/www/public_html/a Now set acl so that ftp user can upload folders. FOR USER sudo setfacl -R -m u:yulichika:rwx /var/www/public_html/a FOR GROUP sudo setfacl -R -m g:users:rwx /var/www/public_html/a Ho...
centos folder permission ftp user and apache
1,452,599,967,000
I have an interesting problem where I have the ability to upload files, change permissions, download files using FTP on Cent OS. However, the interesting and annoying part is that the files are completely blank (0 bytes) when they get uploaded. What might be the trouble here? Here is the log from the client (FileZill...
There are three main possibilities attached to that error code. You either don't have permission to upload to that directory, the disk on the server is full, or uploading the file would exceed your user's disk quota. Ftp 4xx error codes are "Transient Negative Completion reply" codes. In other words, these error codes...
File uploads successfully however it is 0 bytes
1,452,599,967,000
My /var/log/messages is full of messages like: Jan 29 01:00:02 vm2147 pure-ftpd: (?@::1) [INFO] New connection from ::1 Jan 29 01:00:02 vm2147 pure-ftpd: (?@::1) [INFO] Logout. Jan 29 01:05:02 vm2147 pure-ftpd: (?@::1) [INFO] New connection from ::1 Jan 29 01:05:02 vm2147 pure-ftpd: (?@::1) [INFO] Logout. These messa...
Could you take a look into your crontab? Maybe something is defined there as a every 5-minute task.
pure-ftpd floods /var/log/messages
1,452,599,967,000
We have 2 linux RH servers, that were configured the same way. Same OS version, same ftp client, etc. The ftp client that we had installed is located in this website. http://rpm.pbone.net/index.php3/stat/4/idpl/20810117/dir/scientific_linux_6/com/ftp-0.17-53.el6.x86_64.rpm.html The permissions were already set up equa...
You have to do FTP in passive mode and not active mode. If using a text client, you have to use the command: PASV If using another piece of software, you will have to find the menu for PASSIVE mode transmission. see Active FTP vs. Passive FTP, a Definitive Explanation
FTP on Linux RH -- stuck at 150 Ascii
1,452,599,967,000
if I connect to my ftp server using ftp command i'll have only a prompt waiting for me to enter one of the available commands listed using help, I am not newbie that much to believe those commands are wrappers of more sub-layered protocol ftp instructions such as 'MKD', 'SMNT', 'NLST', (and more). I would like to know...
Use quote (send arbitrary ftp command) to achieve that! https://linux.die.net/man/1/ftp
how to send native ftp words to one ftp server?
1,373,228,270,000
Can I use ProFTPd without using a chroot jail (thereby preventing access to anything outside of the FTP root)? I have a requirement to have symlinks in my FTP source that point to locations outside of the directory where I root my FTP service. All of the docs and discussion I've read on ProFTPd talk about how to use t...
ProFTPD has the mod_vroot module for this purpose. You can compile this module into ProFTPD yourself or install it if your repositories have it (apt-get install proftpd-mod-vroot for certain Debian repositories). mod_vroot allows a user to configure a "virtual chroot", setting the DefaultRoot directive (the initial/ro...
Implement ProFTPd server without chroot
1,373,228,270,000
Here is the .netrc file and the command I use, any idea what is wrong here? [root@localhost ~]# cat /root/.netrc machine ftp.nyxdata.com login anonymous password empty macdef download_nyse_index cd /OpenBook/SymbolMapping bin get SymbolMap.xml /tmp/SymbolMap.xml quit [root@localhost ~]# ftp ftp> $ download_nyse_inde...
A macdef directive, like the others (login, password, etc.), only applies to the machine-headed stanza that it's in. As far as I know, putting a macdef directive before the first machine stanza has no effect, and there's no way to have a macro available before the open command is executed. Your macro will work if you ...
I have defined a macro in .netrc file but when I execute it from ftp it says "macro not found"
1,373,228,270,000
Currently running CentOS 6.5 with vsftpd. I would like to explain my process and then have the proper process explained back to me from scratch which I believe will solve my issue. I am currently able to log into my server via FTP from my "root" user account, but I understand that is bad practice. So what I need to do...
First of all I'd create a symlink between /var/www/ and my home what this does is, when you land into /home/usr you can go to /home/usr/www and it will redirect you to /var/www for instance. cd /home/usr sudo ln -s /var/www www perform a ls -lrt on /var/www ls -lrt /var/www/ now make sure your usr is part of group...
CentOS Local User not able to view directories/files via FTP login
1,373,228,270,000
My question is twofold. I need to somehow re-enable telnet and/or ssh in a device where I currently only have root ftp access. Also, if I am going about this wrong, please let me know. Details to follow... Background I have a special development board running Arm Linux with the 2.6 kernel. (The device is the 9G45, but...
Fixing files When you're limited to ftp access only on a system your only real option is to get/put files onto the device. But this turns out to often be all you need to "break" into a system. The approach you're going to want to take is to pull a file down to your local system, edit this file, and then put it back. /...
Reconfigure login through root ftp (lost ssh access)
1,373,228,270,000
# grep -i ftp inetd.conf ftp stream tcp nowait root /usr/sbin/ftpd # oslevel -s 6100-06-05-1115 So I have an AIX 6 server. How can I check if FXP is enabled on the FTPD or not?
According to IBM's AIX documentation for ftpd, there is a -ff flag which: Disables checking for both a privileged port and an IP address that matches the one used for the control connection when the client requests the server to connect back to a specific client port. Using this flag enables the client to request tha...
How do I know that FXP is enabled or not? (AIX FTPD)
1,373,228,270,000
I am setting up SFTP access to one of my machines running Linux with the Dropbear SSH server. When I SFTP onto the machine remotely, I can see the entire filesystem on it, even if I might not have write access. How to I control what directories a user can see when connecting to my machine via SFTP? For example, what i...
I believe you'll need to run your dropbear ssh server inside a chroot'd jail if you want to restrict it to certain directories. If you were using a recent OpenSSH, I'd suggest using the ChrootDirectory setting in your sshd_config. It doesn't appear as though dropbear has a similar parameter, so you'll have to do it m...
Set visible directories for SFTP access?
1,373,228,270,000
I am using a script to call SFTP service to fetch some logs from the remote server. This works fine in normal scenario but, i have noticed a very long delay of around 30 minutes or more in some of the cases when the server expects the password. Following is the code i am using: #!/bin/bash dirdate=`/bin/date +%Y%m%d ...
You can add to the sftp command the option -o NumberOfPasswordPrompts=1 to stop it asking twice for passwords. You might usefully also try -o ConnectTimeout=20 -o ConnectionAttempts=1
Huge delay in script response when using SFTP with expect
1,373,228,270,000
I have a .netrc with the following format in a directory using a bash terminal on OSX: machine m... login l... password p... I have chowned and cmoded the file like this, as suggested in this help file $ chown myusername .netrc $ chmod +600 .netrc When I am in the directory, I issue the following command: $...
Yes, in general the .netrc file should just work as you've described. It might be getting blocked by your FTP client not supporting it (perhaps it was explicitly built without this feature enabled). This would likely be done since this method of storing usernames/passwords is inherently insecure and should likely not ...
Do I just need to include a .netrc file to have UNIX pick it up?
1,373,228,270,000
I have recently installed DD-WRT on my D-Link DIR-615 router (rev. D3). Everything seems fine but I cannot connect to some (most) FTP servers anymore. Any ideas what can cause this issue? -- Passive/active doesn't make a difference. I've discovered something interesting. I've set up a port range forwarding 1024-65535 ...
This is an old topic, but someone might still find my solution useful: update your firmare. DD-WRT provides updated versions and the last one I could find here http://dd-wrt.com/site/support/other-downloads?path=others%2Feko%2FBrainSlayer-V24-preSP2%2F works. I can finally use FTP.
FTP issues after installing DD-WRT
1,373,228,270,000
I have some automated scripts which perform FTP uploads among other things. I'm wondering what level of error checking I should conduct once these uploads have finished executing. Could anything go wrong uploading a file when it reports "226 Transfer complete" which would warrant extra tests, besides checking for this...
No, it does not. 226 can also occur on various conditions where this would not be true (ABORT for one). See RFC 959.
Does "226 Transfer complete" guarantee the consistency between local and remote files when using ftp?
1,373,228,270,000
I can do tcpdumps with this command: tcpdump -w `date +%F-%Hh-%Mm-%Ss-%N`.pcap src 10.10.10.10 or dst 10.10.10.10 Q: I have an FTP server with username: FTPUSER and password FTPPASSWORD. How can I upload the tcpdump in "real time" I mean I don't have a too big storage to store the dumps, so I need to upload it to a ...
install curlftpfs opkg update; opkg install curlftpfs then create a script that will run after every boot of the router vi /etc/rc.d/S99tcpdump the content of S99tcpdump #!/bin/ash mkdir -p /dev/shm/something curlftpfs FTPUSERNAMEHERE:[email protected] /dev/shm/something/ tcpdump -i wlan0 -s 0 dst 192.168.1.200 or ...
How to upload tcpdumps in realtime to FTP?
1,373,228,270,000
Ok, let's say I am responsible for old application that I don't really know the details of, I am trying to secure my server, and someone suggested to forbid the 21 port that used for FTP. But I am not sure which programs are running and use FTP on a day to day basis. Say I don't have the solution to install the tools...
What commands have been performed on the local FTP server? To enable FTP logging on an AIX system, you need to reconfigure FTP (being called by inetd in your case) to send debug logs to syslog and to configure syslog to save those logs to a file. Edit /etc/inetd.conf and add -d to the end of the ftpd line: ftp ...
Is there a place where FTP transfers are logged?
1,373,228,270,000
I've been searching and I cannot find an answer on any of these sites that will work. I want to copy all of the contents of this folder to my server. Which Linux command should I use to do that? I don't want to manually run through all of the objects in that folder, one at a time per se. I've seen everything from scp ...
you can use something like cd directory-where-you-want-to-put-the-files wget -r ftp://ftp.eso.org/pub/qfits/
Copy contents of remote server folder to current server?
1,373,228,270,000
I am trying to ftp some recording files to a remote server for backup every night. I am very confused regarding shell script. My question / problem is : I want to move the whole folder/directory instead of file to the remote server. Here is current script: HOST='10.113.68.50' USER='sms' PASSWD='Abc123451' LOCALPATH='...
you can use mput * instead of put to upload all of the files in the directory. Further you can screen files, for example: mput *.jpg will transfer all and only jpg files.
Shell script: whole directory to the remote ftp server
1,373,228,270,000
I want to be able to store the login details all of my remote FTP accounts in one place, securely. Then I'd like clients like autofs/curlftpfs, Filezilla, etc to use this one store of passwords. I'm not interested in GUI-dependent solutions. Is this possible somehow?
Ideally those would be SFTP accounts, using SSH public key authentication rather than passwords. You'd gain both security and convenience. But let's assume you don't have a choice of not using FTP with passwords. You could store the passwords (the .netrc file) on an encrypted filesystem and mount that filesystem only ...
A local, centralized, secure way to store FTP login data, including passwords
1,373,228,270,000
When downloading /var/log/apache2/other_vhosts_access.log (100 MB) from a distant server to my local computer via SFTP, I noticed that the network transfer was not compressed. Indeed similar compressed files are ~ 10 MB and it would have taken 1/10th of the downloading time I observed. Is there an option in SSH/SFTP s...
On WinSCP, transport compression can be enabled in the SSH page on the Advanced Site Settings dialog: For an OpenSSH command line client, the -C option to sftp (passed through as the -C option to ssh) provides transport compression for the session.
Auto-compress SFTP file-transfer to reduce network data usage
1,373,228,270,000
I'm using a shell script which executes lftp mirror --reverse to upload files and directories to a remote server. Just before that it removes everything using glob -a rm -r -f *. The problem is, it is not so fast. Whole operation takes couple of minutes, especially the recursive removal. I'm uploading few megabytes of...
The solution was at hand. While digging through LFTP manual I found that mirror command has a --delete option which perfectly suits my needs. --delete delete files not present at the source ~ LFTP Manual I changed glob -a rm -r -f * mirror --reverse $local_directory . to mirror --reverse --delete $local_directory ....
LFTP - Remove files from remote server while uploading via lftp mirror --reverse
1,373,228,270,000
I have used following firewalld rich rule. But it is allowing me more than two FTP connections in a minute. I expected that it could allow only two connections. firewall-cmd --add-rich-rule='rule service name=ftp limit value=2/m accept' Can anyone tell me what's wrong with above rule or do we have any other way we...
It may be easier adding the rule in /etc/firewalld/zones/public.xml. This should work, but I'm not sure if m (minute) is supported, h (hour) seems to be: <rule family="ipv4"> <service name="ftp"/> <log prefix="ftp fw limit 2/m " level="warning"> <limit value="2/m"/> </log> <accept> <limit v...
How to add a firewalld rich rule that will allow only 2 FTP connections per minute to the FTP server?
1,373,228,270,000
I’m using the ftp command line tool and want combine scripted input with user input. With only user input the prompt looks like this: ftp> But when I try to insert some input with a script, like {echo "user username passwd"; cat;} | ftp -n server.tld How can I force ftp (or any cli) to still use the interactive mode...
There is a program to interact with interactive command line tools exactly like the ftp example: expect. It is a specialized script shell, extending the on the scripting language tcl. It is very powerful, but you may get away without learning everything about it. A very useful tool is autoexpect, which can record an ...
Writing to an interactive prompt
1,373,228,270,000
I have a script that is running on my computer. The script is written in PHP under my XAMP server. It actually is reading some files from a remote FTP server and after processing them writes them back to the same Server. The total estimated time for finishing the process seems to be around 48 hours. I really need to k...
As long as your system is up, the script will keep running, it will not stop as long as you don't log out of the system. Locking your screen will not stop the script.
keep script running while screen is locked for a long time
1,373,228,270,000
How do I set/change the default ftp root folder for a specific user? I want to be able to create a developer account that homes to different sites on a development box depending on what is currently being worked on. EDIT: The server is running Ubuntu and vsftpd.
If you specify the user_config_dir in vsftpd.conf, you can set any config option on a per-user basis. From man vsftpd.conf: This powerful option allows the override of any config option specified in the manual page, on a per-user basis. Usage is simple, and is best illustrated with an example. If you set user_config...
How do I set the default ftp root folder for an Ubuntu user connecting to VSFTPD?
1,373,228,270,000
I'm trying to connect to a FTP server behind a firewall that allows incoming connections in the range 6100-6200 only. I have successfully connected to this server using curl like this: curl --ftp-port :6100-6200 --list-only ftp.server But I'd like to reproduce the behaviour of this curl command with other clients tha...
When you use FTP in passive mode, the server tells the client which (server-side) data port to use. The well-known FTP protocol includes no way for the client to express requests on which port range to use at the server end. There could be some extensions that could change that, but those are not necessarily widely su...
Setting which ports to use for passive FTP connection with Linux's ftp client
1,373,228,270,000
I'm trying to synchronise one file (among other things) using lftp. Even though the docs say that --file=FILE mirror a single file or globbed group (e.g. /path/to/*.txt) lftp still seems to synchronise all the files of the directory of the pas...
Use -i instead. The excludes are not needed. mirror --reverse --no-perms --delete --verbose=1 -i aaa.php /vol/Grozs/Manasvietnes/gocamping/vietne_050011/www ~/web/discounts
How to synchronise a specific file to a remote FTP server using lftp?
1,373,228,270,000
I just finished installing a test web server with Debian Wheezy, apache and phpPgAdmin. I don't know if the default installation includes the ftp server. How can I check if one is installed? What do I need to do to start it?
There are several different FTP servers packaged within Debian, which you can see via: apt-cache search ftp-server One of the most popular servers around is proftpd, and that can be installed upon Debian systems with: apt-get install proftpd Once downloaded debconf will ask if you wish to run the server via inetd, o...
Is there a default ftp server in Debian Wheezy default installation?
1,427,300,495,000
I have an ftp server running, and it irregularly generates the latest file. The file is store as: Home->T22:30:10->new.txt, and the latest one would be (a new folder) Home->T23:10:25->new.txt (note that this is a new folder with latest time) I need to implement something (it could be anything, C code, Bash script, etc...
An approach that's often convenient is to mount the files, and then access them like you would access ordinary local files. For a server that you access through FTP, you can use CurlFtpFS. mkdir theserver curlftpfs theserver.example.com theserver You'll need to pass the username and password to curlftpfs, either on t...
FTP: get the latest file in server
1,427,300,495,000
Does anyone know which character encoding is used in .netrc? As a German user, I sometimes put umlauts in passwords. So my question is, are these treated as latin1 or may I assume that I am doing fine encoding the file in UTF-8?
There's no applicable standard for .netrc, which started off in the 1980s as a BSD feature. That of course predates UTF-8. However, since there are no standards, you may be using someone's "improvement" which assumes (a) locale-based encoding or (b) UTF-8. Don't count on it. The password used for ftp is covered by ...
Character encoding of .netrc
1,427,300,495,000
I'm trying to access my ftp server through the browser but I am facing an issue. If I access it using Filezilla, I can see the directories fine. However using a browser I get no directory listing. I have added this entry to iptables hoping to solve the problem but it didn't change: -A INPUT -m state --state NEW -m tcp...
The simple solution is to switch Filezilla to use passive mode when connecting to that FTP server. When you connect to FTP you use port 21 which is known as the control channel. This is the connection used to send commands and receive notifications on the results of the commands issued. Note that for file listings (th...
vsFTPd Browser no Listing
1,427,300,495,000
As we know we can add folder to user using useradd user -p user_passwd -d /home/ftp/user_dir/ -s /bin/false but how to add folder to existing user, for example /home/ftp/root for root ?
Basically you don't add, you change home directory. usermod -d /home/ftp/root root if you want to move existing files, use this: usermod -d /home/ftp/root -m root Allowing root to access via FTP it not good practice, it's security hole. Even if this, I would rather recommend to create symlink to target folder from e...
How to add folder to existing user [proftpd]
1,427,300,495,000
Response: 220-This is a private system - No anonymous login Response: 220 You will be disconnected after 60 minutes of inactivity. Command: AUTH TLS Response: 234 AUTH TLS OK. Status: Initializing TLS... Error: GnuTLS error -50: The request is invalid. Error: Failed to initialize TLS. Error: Could not conn...
With FileZilla 3.5.2 it works perfectly. With FileZilla 3.5.3 it produces the error message above. So it's a bug AFAIK.
Filezilla: GnuTLS error when using FTPES
1,427,300,495,000
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 $3/" | sftp -b - $SRV_USER@$DEST_IP } fileTransferToDEST $filename $logpathwithfilename $destinationpath $sourcepath...
OpenSSH sftp supports the binary mode only. So it's implicit. See also How to transfer binary file in SFTP? (on Stack Overflow)
Transferring files via Binary mode in SFTP
1,427,300,495,000
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 $SRV_USER quote PASS $SRV_PASS lcd $4 cd $3 bi prompt hash mput $1 quit END_SCRIPT } fileTransferToDEST $filename $logpathwithf...
OpenSSH sftp indicates its results using an exit code (what you are going already). If it returns 0, everything went fine. If it returns 1, there was a problem. No need to parse the output for an arbitrary message. Just execute it in a batch mode, so that it aborts on any error. Use -b - switch for that (the - indicat...
Check if the file has been successfully transferred to the destination with SFTP
1,427,300,495,000
I have been asked by the data owner to copy a specific folder (and its large amount of subfolders and files) via FTPS to our cloud storage provider. I am using LFTP for that, and the upload worked well until I hit a snag. There are several folders with multiple files that have the same filename except for case. For e...
The bash script below loops through the files in the current directory, looking for duplicate filenames case insensitively. If a match is found, it looks to create a "Duplicates" folder that doesn't exist already, then moves the duplicate file into that directory. The outer loop is there in order to re-compute the fil...
Move files that have the same case-insensitive filename
1,427,300,495,000
I have been at this a few times and have become completely stuck in configuring this. Currently, I have this set up for an FTP server: Local PC (My MAC) -> AWS EC2 (HaProxy) -> FTP Server Here's a few things I have done so far: Confirmed Ports 20/21 are open in Security Groups Configured in SGs that TCP ports are ope...
After much research and some investigation with my colleague on this, this is what was happening: HaProxy could have been a viable solution. But, the FTP server is configured to force passive mode. HaProxy can be used to proxy FTP connections but there is no real way to configure it to react accordingly to Passive co...
HaProxy 1.5.8 to FTP server
1,427,300,495,000
I've created a user 'www' and added it to the 'www-data' group. I've set the home directory of 'www' to /var/www/ also. I would like to use 'www' to transfer files in and out of my web server by FTP The problem is when I run the command: sudo chown -R www-data:www-data /var/www/ ..I don't have permission to write fil...
That means that you already have a www-data user which Apache uses that should have the necessary permissions in /var/www. The simplest solution would be to use that same user, but you could also assign the www-data group to your new user and make sure the /var/www directory structure allows the group to write to it: ...
Ubuntu server 16.04 - Get full FTP access to /var/www/
1,427,300,495,000
I've been trying to configure my FTPS server which is behind NAT. so I've opened ports 20, 21 as well as 2120-2180 in my NAT (TCP+UDP) and configured proftpd to use this ports for passive communications. However, trying to connect using FileZilla leads to the following log: (in french, but quite clear actually) Statut...
FTP is a horrible protocol. It uses two ports -- one for commands, one for data. This makes it notoriously difficult to NAT, since a router would need to parse the command channel and figure out that a second connection is expected for this FTP conversation. Doing so is ugly, but also the only way to make NAT work wit...
Proftpd doesn't answer to "PASV" command
1,427,300,495,000
I need a FTP software that I can use in Debian as well as be able to distribute it when I remaster Debian into my own distro. I need it to be able to do both text and graphical but the text based part needs to be optional for the user.
Suggestion: gFTP It has both text and graphical interface. See the license, it can be redistributed.
Good FTP software for Debian desktop for home networks [closed]
1,427,300,495,000
I'm having an issue where when I transfer a Python file to my VPS via FTP and try to run it using ./foo.py I am returned with the error: : No such file or directory. The error seems to indicate that the file I am trying to execute does not exist. But I can run the program with no problems using python foo.py which le...
This happens when a file contains \r\n as a line terminator instead of \n, since \r is a C0 control code meaning "go to the beginning of the current line". To fix, run dos2unix foo.py. Example session: ben@joyplim /tmp/cr % echo '#!/usr/bin/env python' > foo.py ben@joyplim /tmp/cr % chmod +x foo.py ben@joyplim /tmp/c...
Why does trying to run a python executable return ': No such file or directory' after transferring it to server via FTP? [duplicate]
1,427,300,495,000
A vendor has provided these FTP connection params so I can upload some data for them... Host: host.com Port: 46800 Protocol: FTP – File Transfer Protocol Encryption: Require implicit FTP over TLS Logon Type: Normal User: [ username ] Password: [ password ] It isn't working for me... $ ftp -p host.com 46800 Connected t...
The ftp program is for the insecure ftp protocol. Your vendor has specified that you use Implicit FTP over TLS which is a way to encrypt the connection and keep your credentials and data private over the Internet. Fortunately, there is a program called lftp which understands this protocol. lftp open -u [username] ftp...
How can I connect and upload to this FTP host on the console?
1,427,300,495,000
I have Linux machine red-hat 5.X please advice - which what command I can identify if someone is tiring to copy files from my machine VIA sftp or ftp is it possible to verify this on my Linux machine ? thx
Sure you can use lsof to see what activity is currently taking place on the server. Here's what the output would look like for an idle connection to an SFTP server. $ sudo /usr/sbin/lsof -p $(pgrep sftp) COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sftp-serv 30268 sam cwd DIR 0,19 ...
how to know on my linux machine if connection VIA sftp is active
1,427,300,495,000
I know how can I change the umask settings for all the users using ftpd, but how can I change the umask for a given user using FTPD? AIX/6100-05-02-1034 FTP server (Version 4.2)
The AIX ftpd doesn't provide per-user umask settings. You can set a global umask value with the -u switch, but neither the command line nor the configuration file allow you to set this on a per-user basis. Note that you can set the umask, and run chmod, from the client side with SITE commands: SITE UMASK 002 SITE CHMO...
AIX ftpd - how to set umask for a given user?
1,427,300,495,000
I have a user account rootftp which two people use every once in awhile to ftp into a machine, I believe it is using Solaris and running as a Xerox freeflow print server. The physical machine is a Xerox N-Series, Reg Model D01D, Reg Type D01D001. The two users are running windows 10 if that affects anything. Say we ha...
Very likely you just need to update the user's home directory, you could vi /etc/passwd and change /var/somewhere/somewheredeeper to /var/somewhere but you'll then need to update the permissions on /var/somewhere to have ownership and permissions that allow the rootftp user to ftp to that dir
How to setup starting file location for a user using FTP
1,427,300,495,000
I'm trying to run tnftpd on OS X, which is NetBSD's FTP server and used to be OS X's FTP server. I built and installed it from Apple's sources. Unfortunately, it seems that I cannot run the server without root privileges. These have been my approaches so far to get the server to work without root privileges: I've tri...
According to the man page tnftpd(8) ... The server uses the TCP protocol and listens at the port specified in the ``ftp'' service specification; see services(5). and a scan through ftpd.conf(5) shows no obvious means to fiddle with the listen port (as oppo...
How to run tnftpd without root on OS X?
1,427,300,495,000
I am trying to deploy a WordPress website from a test server to a production server. wget seems to be an efficient solution for transferring lots of files between 2 servers via FTP. I connect to the target server, go to the /var/www folder, and I type : wget -r ftp://fred:[email protected]/mywebsite/ I runs 2 minute...
The default recursion depth limit in wget is 5. This is primarily meant for the web where a large recursion is often a mistake, but the default also applies to FTP. Large recursion could also be a problem with FTP if the server has upward-pointing symbolic links. To make a complete mirror, pass -l -1 to make the recur...
Why is wget ignoring some files in ftp transfer?
1,427,300,495,000
OS: CentOS 7 with VSFTPD with firewall turned off for the moment Client: Filezilla VSFTPD Configuration Settings: Used [root@Turbo ~]# vi /etc/vsftpd/vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES xferlog_enable=YES connect_from_port_20=YES xferlog_std_format=YE...
The resolution to this problem was so, so not obvious. When I knew the proper search terms, obvious now, but not for the past couple of days, and understanding things better, the pieces started coming into place. Many posts on "VSFTPD directory content not listed" talked endlessly on passive vs. active, ports, permiss...
Directory Contents Not Listed When Connecting To CentOS 7 VSFTPD
1,427,300,495,000
I have read the manual page for wget and search Google for an answer, but haven't been able to get it. How would I use wget to download only folders that contain a specific term in their names from an FTP site that also has multiple other directories without that term in their names?
wget -I /people,/cgi-bin http://host/people/bozo/ -I is followed by a comma separated list of the directories you want to include. However, note that this will just include the full name listed in -I, I believe, not part of the name, it sounds like you may want to be including directories based on a partial pattern. ...
Download only specific directories from FTP site using wget
1,427,300,495,000
I would like a simple (ideally one-liner, without separate script file) command to connect to an ftp server via anonymous login using my email address as the password. My attempt is based on the syntax as shown here of basically ftp username:password@hostname; however this does not work for me when the password itself...
use lftp example: lftp -u user,pass ftp.example.com
Specify anonymous ftp password in ftp command
1,427,300,495,000
I succeeded in transferring all files from a folder via ftp from a remote server to a raspberry, but I would like to transfer only new ones. Below is the working script i have. #!/bin/bash -vx ftp -in IP_SERVER<<END_SCRIPT quote USER rem_user quote PASS rem_pass bin prompt:off cd /path_to_server_files lcd /path_to_loc...
SOLUTION - I got this script to work. thank you for all the support you gave, If i have enough time to be working on this i'll keep trying the other options and make them work as well. #!/usr/bin/python import os from ftplib import FTP local_path='/path_to_local_files/' os.chdir(local_path) ftp = FTP(host='server_nam...
Transferring mp3 files from a remote server via cronjob to the RPi without overwriting
1,427,300,495,000
Usually, when I drag a link to the terminal, the link target is pasted in the terminal. However, when I just dragged a FTP link from Chromium to my Terminal (first result on Google for "ftp pdf", ftp://ftp.ipswitch.com/ipswitch/manuals/ftpserv.pdf), a file download was immediately initiated (I knew because a desktop n...
Why is the ftp resource being downloaded after I drag the link to my Terminal? (instead of being pasted as text, like http-URLs) The resource is not being "downloaded", but queried for its path and type. When dropping a file or URL on Konsole, it will try to convert it to a URL or path. Try for instance dropping a f...
Where to find the downloaded file after dragging a FTP URL to the terminal?
1,427,300,495,000
It was a wonder for me to see why the file owner changes when I log in the remote machine with different usernames. Please see: 1st I logged in a remote machine using username : peacenews. I entered a directory (pwd outputs / as the directory) When I run ls to see the files there, I get the below: (I am only showing ...
I have resolved the matter on my own. I did my research by doing ftp to my own server. The thing is that the file owner isn't changing. The 1st output shows the username and the 2nd shows the user ID for the same user. So simple but for confirming this I had to experiment with my own server.
ftp: in remote machine, file owner changes with the change in username used for logging in the remote machine
1,427,300,495,000
I'm using vsftpd. By default, when I create a user, they are jailed in their directory which is /home/user. I have enabled chroot_local_user=YES. On the other hand, I also wanted to create a shared directory for all the FTP users. so in a nutshell, they have their own directory and they have a shared group folder / +/...
Try to "mount --bind" the shared directory into the user's directory. mount --bind /home/actual_share/ /home/someguy/shared/ I assume you'll need to add group write to the "actual_share". Got the idea from this forum post.
Share a directory over FTP with chroot_local enabled
1,359,646,422,000
Folks over at SO couldn't answer this, so I am posting over here. I need to do an FTP over SSL to a FileZilla Server running on a Windows server from an AIX Unix clien. I have the Host name of the destination server, the user id and password, and an SSL certificate. I am not sure how to install that certificate in AIX...
The standard AIX ftp client does not support SSL or TLS. I'd be very interested if you find a way to get this going without 3rd party tools. You can grab lftp from several sources ... we have used that in production successfully for a few years now on AIX 5.3. I've used the rpm available here lftp rpm for AIX, as wel...
FTP over SSL in AIX (UNIX)
1,359,646,422,000
I recently installed a CentOS machine for a couple of game servers. I followed some tutorials on the web for that. But. I want to sftp to store data on the server but it is very slow, I read that ftp is much faster. So my question is: Can I change my SFTP to a FTP server and if so, how.
First you have to analyze why SFTP is "slow". Does the CPU-usage on the server or client raise to a very high level during transfer? Are there any lost packets on the network layer? Do your duplex settings on the network adapters match those of the network devices (switches, routers, whatever) match each other? Apart ...
change sftp to ftp
1,359,646,422,000
I have the below script to pull the file from another server. #!/bin/bash PROC_DATE=`date "+%Y%m%d"` CURRENT_DATE=`date` LOG_FILE="/home/tdata/dw/da/common/AWS_{PROC_DATE}.log" AWS_CRED_FILE_NAME="/home/tdata/.aws/crnals" cp -p ${AWS_CRED_FILE_NAME} ${AWS_CRED_FILE_NAME}_${PROC_DATE} if [ $? -ne 0 ] ; then e...
I successfully run a snippet like yours. For running the command directly: Removing the password file, lead to an indefinite halt in the terminal. Giving a wrong password to the file, timed out with Permission denied, please try again.. For running the script gave the same results as above. I guess you are missing t...
SFTP job getting hung when running through shell script
1,359,646,422,000
I'm using mget in an ftp script and would like mget to skip getting files that already exist in my local directory. Is there such a way? If so, is there also a way for mget to proceed if the local and remote files are different? EDIT: Both are excellent answers, I went with the 2nd because it provided an example which...
There are many different ftp implementations. I don't know of any ftp program that has an mget command that checks local files before downloading. There are many programs that can download files over FTP and that do have what you want. lftp lftp ftp.example.com <<EOF mirror --only-missing --file=/path/to/*.ext . EOF ...
ftp mget don't overwrite
1,359,646,422,000
Question When I start SSH server, my Debian automatically start the SFTP server as well - why is it design in such way? Environment: Linux 5.10.0-14-amd64 Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux ssh.service - OpenBSD Secure Shell server Background Today I realized: when I want to handle http requests, I sta...
Although SFTP is not part of the extensible core SSH protocol, it is built-in to at least one of the the common SSH implementations (OpenSSH) and therefore can be considered to be a standard component. You can disable the functionality on the server if it's not required by changing /etc/ssh/sshd_config so that you rem...
Why do I not need to start an SFTP Server ( why does SSH automatically start SFTP )?
1,359,646,422,000
I'm accessing my localhost ftp server by Iceweasel or by the terminal (with the command ftp) while listening on the ftp port with sudo tcpdump -vv -A 'port 20' or sudo tcpdump -vv -A port ftp but nothing is printed although the connection is well established. What am I doing wrong?
You indicated you are connecting via localhost. You will probably need to specify the interface with -i lo (or lo0 on a Mac), so use: sudo tcpdump -i lo -vv -A port ftp or on a Mac: sudo tcpdump -i lo0 -vv -A port ftp The you should see the traffic. The reason: -i Listen on interface. If unspecified, tcpdump s...
Why don't I see packets when I listen on my ftp port with tcpdump on localhost?
1,359,646,422,000
I think it was because I tried to install. Slackware txz 13 and mine is 14.1 64 bit, but I do not know where baicho package for Slack 14.1 can someone help me?
Compile from source (according to wiki https://wiki.filezilla-project.org/Client_Compile ): Install dependencies: wxWidgets GnuTLS libidn gettext (Compiletime only) libdbus (under Unix-like systems) Download source package: http://sourceforge.net/projects/filezilla/files/FileZilla_Client/3.7.4.1/FileZilla_3.7.4.1_src...
FileZilla will not start on Slackware
1,359,646,422,000
Tried to install curlftpfs in debian 12 says that the package is missing. While I understand that the package is still not active developed I use often curlftpfs inside some virtual machines transfer to transfer between various fs eg. windows/linux VMs that pass files through filezilla server and so on. So to me would...
curlftpfs ships a single, simple binary package; you can safely install the Debian 11 version in Debian 12. Assuming you’re using amd64: wget http://deb.debian.org/debian/pool/main/c/curlftpfs/curlftpfs_0.9.2-9+b1_amd64.deb sudo apt install ./curlftpfs_0.9.2-9+b1_amd64.deb
Is curlftpfs missing in debian 12?
1,359,646,422,000
An article at this URI https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-firewalls-iptables_and_connection_tracking RELATED — A packet that is requesting a new connection but is part of an existing connection. For example, FTP uses port 21 to establish a ...
Does it go through the FTP messages to find out the data-connection tuple (dst_ip, dst_prt, src_ip, src_prt) ? I know that is way too impractical to implement. Yes, that is exactly what it does. Why do you think it's too impractical? You can look at the code yourself here: https://git.kernel.org/pub/scm/linux/kernel...
How is netfilter able to track the out-of-band data-connections of FTP to be in RELATED state with control-connection?
1,359,646,422,000
I'm trying to mirror a directory via FTP with wget. The command I'm using is wget -m ftp://user:[email protected]/foo/bar/ But, when I run it, I get the following: --2018-10-10 15:01:32-- ftp://user:*password*@192.168.1.1/foo/bar/ => ‘192.168.3.150/foo/bar/.listing’ Connecting to 192.168.1.1:21... connected. ...
A similar question on stackoverflow (which involved java instead of wget, but really the underlying problem is with the URL syntax which is hopefully language-independent) was resolved by adding another slash and URL-encoding it, like this: wget -m ftp://user:[email protected]/%2Ffoo/bar/ It works for me even without...
Using wget on a directory outside the user's home directory
1,359,646,422,000
I'm configuring an FTP server on an embedded Linux system. Iv'e set in my /etc/passwd a number of local users, for example: UserA:14:50:FTP User A:/somepath:/bin/sh UserB:1000:0:FTP User B:/somepath:/bin/sh Problem is that I don't now how to set write_enable (whether any FTP commands which change the file system are ...
Found the answer in this link. Here an extract of my '/etc/vsftpd.conf': # This powerful option allows the override of any config option specified # in the manual page, on a per-user basis. Usage is simple, and is best # illustrated with an example. If you set user_config_dir to be /etc/vsftpd_user_conf # and then log...
FTP server (VSFTP) "write_enable=YES" configuration per user
1,359,646,422,000
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 anyone suggest another method like sed command to remove such patterns?
Windows line endings consist of the two-character sequence CR, LF. CR is the carriage return character, sometimes represented as \r, \015, ^M, etc. A Unix line ending is just the LF character. A way to convert Windows line endings to Unix line endings using only standard utilities present on all Unix variants is to us...
Remove special pattern ^M from script which got appended after FTP from windows to Unix
1,359,646,422,000
I am using: SCO_SV scosysv 3.2 5.0.7 i386, and I am trying to download ssh and install it. But the only way I can do it, is by using FTP. I have tried the following: # ftp ftp> ftp2.sco.com ?Invalid command ftp> What am I supposed to do? I have never used FTP before in any Linux machine. I have Googled it, and I look...
A very simple use of the ftp client would be to specify the server's hostname on the command line: ftp hostname. Then use ftp commands ls and cd [directory] to navigate in the server's directory structure and use get [file] to fetch the desired file. Notes: FTP servers usually allow login for anyone, provided you use...
How to Download from an FTP site
1,359,646,422,000
I've tried following numerous tutorials found on the net. The setup always starts out simple like sudo apt-get intstall vsftpd and then goes into edditing the /etc/vsftp.conf file. This is where the tutorials fail me becasue most of them either leave the setup for the users home directory, or starts getting in the c...
This is actually quite simple - all you need to do is change the home directory definition of that user's entry within /etc/passwd.
What is the easiest way to set up a FTP server single signon pointing to /var/www?
1,501,174,611,000
I can normaly mount/umount FTP as file system using following commands: └──> curlftpfs -o codepage=windows-1250 anonymous:[email protected] /home/marek/ftpfs └──> ls /home/marek/ftpfs/ 1 2 3 └──> fusermount -u /home/marek/ftpfs └──> ls /home/marek/ftpfs/ └──> But when I issue curlftpfs with strace then nothing is mou...
I am not familiar with this executable, but my guess is that it needs to run with privilege (probably suid root or similar). strace -f cannot run such a process with privilege unless strace itself is run as root and you may need the -u option.
exit status of command is different when it is run via strace
1,501,174,611,000
I have a centos 6.5 installed on Virtual Box. I'm trying to configure a basic ftp server. Below are details of it. Installed vsftpd from DVD/Yum: Status -> Successful Disabled firewall for test purposes, chkconfig iptables off : successful service iptables stop : successful Also set selinux in disabled mode: succes...
An FTP server behind a port forwarder can’t serve in the passive mode unless the software used has a special design to pass FTP data connections through. Cases are: The NAT software able to sniff for 227 Entering Passive Mode in FTP control connection, to do port forwarding accordingly and some mangling of FTP contro...
FTP Troubleshooting
1,501,174,611,000
I've managed to run vsftpd with unencrypted FTP, Implicit SSL, and Explicit SSL. What I'm looking for is a way to run it with Explicit SSL, but have a separate port for SSL. For example: port 15000 for unencrypted, and port 15001 for SSL. This is because I want to enable LAN users to connect unencrypted but WAN users ...
The answers to this question at Server Fault suggest the only way to do this is to run two separate instances of vsftpd, each with one of the configurations you want.
vsftpd: use Explicit SSL in a different port than unencrypted FTP
1,501,174,611,000
Right now we have a script that uses the FTP mget command to download all the files in a specific location. After after verifying the files have successfully downloaded we run a ftp delete command to delete each file that was downloaded. We noticed that each ftp delete is creating a new connection and I was wonderi...
You might use lftp instead of the regular ftp client. With lftp you can use mget -E /path/to/files which will delete the source files after succesful transfer. See http://lftp.yar.ru/lftp-man.html for the manual.
delete multiple remote files with the FTP command
1,501,174,611,000
I'm using GNU's Inetutils FTP and have gotten it all set up except it does not automatically start when I turn on my system. In order to get it to work I have to start the standalone using "ftpd -D". I've figured out that I have xinetd running and I believe I need to use that to automatically start the daemon. In the ...
I figured it out. Incase anyone else has this problem in the future, I forgot to specify a port to use for the service, changed the service name to ftp and set disable to no. Here is my final service file: service ftp { port = 21 disable = no socket_type = stream protocol = tcp wait = no user =...
Starting FTP with xinetd
1,501,174,611,000
I had vsftpd set up such that I was able to upload files to a VPS I set up. The only problem is that I could not create directories. I set up vsftpd to disallow anonymous users, but allow virtual users to connect with their local credentials. At this point, the error message when I tried to create a folder changed ...
If you need to get the write permission for your user account in /var/www/ particular user want to be a member of apache or www-data group according to your operating system. write_enable=YES Only use this if you have added a user with web root directory as it home directory allow_writeable_chroot=YES
Controlling ftp access with vsftpd
1,501,174,611,000
I would like to make shortcuts for gvfs mounts (I prefer to mount from the shell). For this, it is quite necessary/convenient not to have to enter the password for the ftp:// and sftp:// connections . Currently the only way I know is: echo 12345 | gvfs-mount sftp://[email protected]/ Even though I can make the file's...
You could use something like expect to provide the credentials each time you want to connect. It's not super secure but gives you what you want. #!/usr/local/bin/expect -- set timeout -1 spawn gvfs-mount {args} expect "User" send "joe\n" expect "Password:" send "xxxxx\n" expect eof Source: gvfs-mount specify username...
gvfs-mount auto password
1,501,174,611,000
Every 5 minutes some new files are downloaded via lftp to a local directory. I need to upload to another ftp only the non existing files. My script so far is: #! /bin/bash today=$(date +%Y%m%d) today_files="rec."$today"_" programa_dir="/home/user/local-dir" # Download files, that do not exist in the local directory l...
I don't have access to LFTP at the moment, but I suspect you're looking for the --only-missing param, which is only usable with mirror. Try this: lftp <<<EOF open -u user,pass ftp2 mirror --reverse --only-newer $programa_dir/* / bye EOF
LFTP mirror upload only non existing files to remote directory
1,501,174,611,000
I installed vsftpd on Linux Mint, I changed some settings to the configuration file so it permits anonymous users, however I want to redirect them to a certain directory where they can upload files. I'm just confused among the settings...
Please make sure the following setting is configured in your /etc/vsftpd.conf file anon_root=/example/directory/ # Directory to be used for an anonymous login if you are trying to create a soft link to redirect to certain directory then note that a soft links cannot resolve unless where they link to is inside the ...
Right settings of vsftpd?
1,501,174,611,000
Anonymous / FTP users are allowed to access the FTP. Suppose if there is a user named as JOE then how can I allow him to access the FTP?
Not sure why you chose vsftpd, as the documentation is notoriously lacking/distributed. However, to answer your question - the simplest method of allowing registered user access is through enabling local users: # Uncomment this to allow local users to log in. local_enable=YES There are other options, dependent on yo...
How to allow a particular user to access the FTP?
1,501,174,611,000
I have installed ftp and sftp on my linux mint system, for wordpress file transfer I had to create new user account for ftp and sftp on my system during the installation process. Is it possible to run ftp and sftp from home user account, if yes, how to configure it. And if single user account access is possible- what ...
The SFTP article you quoted is misleading at best, and inaccurate for the remainder. SFTP has nothing to do with vsftpd. You can use sftp with your own user account already: sftp you@yourhost If you have SFTP you almost certainly do not need to install vsftpd. At least, not unless you have a legacy file transfer appli...
can we run ftp or sftp from single user account?
1,501,174,611,000
Apologies if this isn't the right forum but I need the advice of an FTP familiar engineer. For security reasons, FTP services are being shut down on our company's Solaris 5 server. The reason is that man in the middle attacks are easier under the old FTP protocol. We run perl scripts that FTP OUT to other services, pu...
FTP service inbound is managed by an FTP server. FTP connections outbound are performed by a client. The two parts are independent of each other. I'm not running Solaris so I can't give you the specifics process names, but this Oracle documentation link explains how to enable and disable the FTP server: svcadm disable...
Solaris functioning as FTP client but not as a host. Possible?
1,501,174,611,000
How can I list all users and groups and change their permissions? I try to update Wordpress but my FTP user intranet_admin has not enough permissions and is unable to create a directory. Update WordPress Download the update from https://downloads.wordpress.org/release/en_US/wordpress-4.9.7.zip ... Unzip the update...
The permission to create a particular directory is not tied to the user account as tightly as you seem to think it is. That is, it's not part of the account's entry in /etc/passwd. A user can create (or delete) a directory in another directory if that other directory is writable by the user or by a group that the use...
Change permissions of users and groups? [closed]
1,501,174,611,000
I'm using proftpd on my server (ubuntu 16.04 x86_64). Default proftpd use standart 21 port. I can connect from my home notebook to ftp with active mode without problem. Now I stop proftpd, change port from 21 to 10021, start service again. And now I can not connect with active mode, only with passive mode. What's ch...
Your firewall (router) has a connection tracking helper for FTP. When it sees an FTP control connection (which it recognizes by TCP destination port == 21), it watches the commands. When it sees your client send the PORT command, it rewrites it (to your external IP address, and maybe a different port) and keeps track ...
While stop working active mode FTP after change server port
1,501,174,611,000
I am looking to install ftp (client) on my RHEL server. I can't access the internet directly, so I need to d/l the package. I have downloaded ftp-0.17-17.2.x86_64 from redhat, and it is telling me: libreadline.so.4()(64bit) is needed by ftp-0.17-17.2.x86_64 when I try and install readline-devel 4, it tells me a newer ...
Try to download a more recent version of ftp, for instance ftp-0.17-54.el6.x86_64.rpm See link http://mirror.centos.org/centos/6/os/x86_64/Packages/ or http://mirror.centos.org/centos/6/os/x86_64/Packages/ftp-0.17-54.el6.x86_64.rpm directly. From the ldd output you can see that it is linked to libreadline.so.6: ldd /u...
Installing ftp without internet access on RHEL 6
1,501,174,611,000
I'm trying to compile php 5.2.x in debian gnu/linux: ./configure --with-ldap --enable-ftp --with-apxs2 --with-mcrypt --enable-bcmath --with-bz2 --enable-calendar --enable-dba=shared --enable-exif --with-gettext --enable-mbstring --with-mhash --with-readline --enable-shmop --enable-soap --enable-sockets --enable-sys...
The problem was openssl, well, I installed openssl 0.9.8 from source: Move to /usr/src compile it, and install it without man pages due to an error: ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl no-asm -fPIC make make install_sw Then i compile php with this options: ./configure --with-opens...
php: compiling with openssl, ftp, ldap, curl support in debian gnu/linux