Tag Info

Hot answers tagged

14

alias ftp='echo do not use ftp. Use sftp instead. # '


14

When you define an alias, the command you set is run instead of the one you wrote. This means that when you run ftp abc.com, what is actually executed is echo do not use ftp. Use sftp instead abc.com A simple solution is to use a function instead of an alias: ftp(){ echo 'do not use ftp. Use sftp instead'; } Alternatively, you could use printf as ...


8

Just put a space and the comment character # at the end of the alias string: alias ftp='echo do not use ftp. Use sftp instead. #' ftp abcd.com do not use ftp. Use sftp instead. This will cause the parameters to be treated as a comment. Just do not forget to add a space before # otherwise it will not be interpreted as a separate token after the alias ...


6

with curl: curl ftp://example.com/ -X 'DELE myfile.zip' --user username:password


5

with lftp: lftp ftp://user:password@host -e "get -E remotefile; bye"


4

If there are 70000 files but your FTP software only shows 9998, then obviously it's the fault of your FTP software, and there is no limit on the filesystem. You'll need to use another FTP software. This assumes that your PHP script is correct, of course. Note that some FTP programs may omit dot files (files whose name begins with .) by default. ...


4

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 interactive session as an expect script. ...


3

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.


3

There are 2 solutions using 2 different ftp servers 1 - Use proftpd with the VirtualServer feature and with a local user force. Snippet of a config file of mine: ServerType standalone DefaultServer on AccessGrantMsg "User %u logged in." DeferWelcome off # Use pam to authenticate (default) and be authoritative AuthPAMConfig proftpd AuthOrder ...


3

You could try the following in vsftp.conf:- anon_other_write_enable=YES The man page says:- If set to YES, anonymous users will be permitted to perform write operations other than upload and create directory, such as deletion and renaming. This is generally not recommended but included for completeness.


2

I wrote this quick script: #!/bin/bash ssh "$1" "nc -l 2020 > \"$2\" &" pv "$2" | nc "$1" 2020 It takes two args, the host to send it to and the file you are sending. It only works for one file. It uses ssh to start a netcat listening on the opposite end and then uses netcat to send it to that listening port. I added pv to the start to give a nice ...


2

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 that owns www. this tells you who ...


2

This tutorial would seem to be what you're looking for, titled: Setup Virtual Users and Directories in VSFTPD. excerpt In /etc/vsftpd.conf. listen=YES anonymous_enable=NO local_enable=YES virtual_use_local_privs=YES write_enable=YES connect_from_port_20=YES secure_chroot_dir=/var/run/vsftpd pam_service_name=vsftpd guest_enable=YES user_sub_token=$USER ...


2

The command ftp put /path/to/local_file doesn't work with vsftpd. Try the following: ftp put /path/to/local_file remote_file_name You may choose any name you wish for the remote_file_name, but you must specify one.


2

In spite of its name it supports FTP. The name VSFTPD stands for "Very Secure File Transport Protocol Daemon". abstract The FTP (File Transfer Protocol) is used as one of the most common means of copying files between computers over the Internet. Most web based download sites use the built in FTP capabilities of web browsers and therefore most server ...


2

After about 3 hours, I think I figured out why it is not working. Selinux context public_content_t is required for files shared via an FTP server, unless associated with a user home directory and looks like /var/ftp/pub does not qualify for home directory. After I mounted ISO file, the security context of rhel changed to system_u:object_r:iso9660_t:s0 and ...


2

Unfortunately, you are using Name Based Virtual Hosting which works because apache reads the HTTP header for the hostname of the client and decides which <VirtualHost> block to use depending on that value. Your block tells it to proxy the request to another server. There is no similar facility in ssh or ftp. The nearest you can get is to use ...


2

libcurl does not support the rsync protocol. From the libcurl FAQ: Section 3.21 3.21 Protocol xxx not supported or disabled in libcurl When passing on a URL to curl to use, it may respond that the particular protocol is not supported or disabled. The particular way this error message is phrased is because curl doesn't make a distinction ...


2

There is a post here that describes the problem. The new kernel module seccomp is used automatically by vsftpd since version 3.0.0. vsftpd is a bit buggy when using seccomp. Add this line to the end of /etc/vsftpd.conf seccomp_sandbox=NO and restart the Server: sudo service vsftpd restart


2

There are several modes with SSL and FTP: Implicit SSL, that is SSL from start (usually port 990) and never plain text. In this case you get no clear text information at the firewall about the dynamic data ports and thus cannot restrict communication to only these ports. Explicit SSL with "AUTH TLS" command before login to enable SSL but without CCC after ...


2

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 you copy files from one ...


2

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 Hope this will solve your problem.


2

Your assessment is correct. From a pure numbers standpoint, the overhead is slowing down the download Use aria2c. Aria2c opens many parallel connections to the ftp server to download a set of files faster. Just be sure that your server supports multiple concurrent connections from the same host Alternatively, if you have write access on your host (in ...


2

You could specify the path on the FTP server after hostname part in the original command of curlftpfs. For example, you could have your command as, curlftpfs user_name:password@hostname:/var/www/public_html ~/mnt/sitename References http://askubuntu.com/a/323215 http://askubuntu.com/a/200812


2

Are the users local users or vsftp users ? Try the following: grep local_enable /etc/vsftpd/vsftpd.conf That should be set to YES and the users should log in with local accounts for this to work. If you do not want this or already have this set, please paste your /etc/vsftpd/vsftpd.conf here.


2

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] ftps://host.com:46800 Password: [enter ...


1

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.


1

Exactly the same thing happened to me after upgrading from Precise Pangolin to Trusty Tahr. I investigated and it looks like /etc/vsftpd.conf, the FTP configuration file, was one of the configuration files amended during the upgrade. Specifically, this line: write_enable=YES which I had previously uncommented was now commented again. I uncommented it, ...


1

I would use SCP instead of FTP. SCP is more secure, and a part of SSH. As long as your public key is in the external hosts authorized_keys-file, then you can just do something like: scp -r kmpy/unica/Campaign/partitions/partition1/CiktiDosyalar/ sms@10.113.68.50:/sms/ Some reason why you chose FTP?


1

I’m not sure what you mean by "will apache able to execute that file". Do you really want to execute (i.e. run as a program) files that are uploaded by ftp? Or do you mean you just want apache to serve them as data to clients? What directories web clients can see is determined by the apache configuration file; you can set that up to serve whatever ...



Only top voted, non community-wiki answers of a minimum length are eligible