New answers tagged

0

It is important. Changing the owner to www-data is a security issue. If you don't, you have to run the web server (apache) as another user. If someone is able to get control of your web server they can do anything that user can do, access files, delete files, change permissions, etc. The idea is that if you use www-data for your web server then someone who ...


0

I had the same symptoms while trying to start vsftpd on an Ubuntu 16.04. In my case it was enough to comment out this line in /etc/vsftpd.conf: listen_ipv6=YES I don't know why i does not work with ipv6 for me, but I have no need for IP-v6 and disabling it solved the problem in my case.


0

I think the server firewall will sufficiently do this job but it's pretty risky: https://help.ubuntu.com/12.04/serverguide/firewall.html The problem is, if you block all traffic except from your IP address, what happens if your IP address changes? You're locked out from your machine. If you know you have 2 routes into the server both with static IP ...


0

Allow by specific port and IP address sudo ufw allow from <target> to <destination> port <port number> i got this from the UFW help page: https://help.ubuntu.com/community/UFW you also need to block connections first and then allow a specific one.


1

Use crontab -e to open your crontab file. Then add: 0 3 * * * rsync -raz --remove-source-files 'user:password@remotehost:/directory/to/copy' '/local/destination/directory/' This tells cron to run this command every day at 3 AM. Adjust the first 5 parameters (0 3 * * *) as necessary to adjust the time when this runs and how often it runs The rsync command ...


0

Use following command to edit your cron job: crontab -e Then add following to the end of that: 0 0 * * * lftp -u username,password -e "your command;quit" ftp.site.com Obviously you must install lftp package beforehand.


0

It is recommended that you use the package manager from Ubuntu ... apt-get synaptic. To install it.. it may be a slightly older version (or in this case seems to be a newer version) but it is compiled for Ubuntu. The binaries are compiled for Linux but each flavor of Linux is slightly different. With the downloaded binaries which it seems you have ...


0

You could transfer files from the Linux machine from terminal via scp to the virtual machine. A starter guide regarding SSH & transfering files can be found here. Basic synthax: scp /path/to/local/file username@some.ip.address.here:/remote/path


2

I faced the same authentication error with pam_service_name=vsftpd. Following advice online, I couldn't work out why setting pam_service_name=ftp fixed the problem so I tested setting this to pam_service_name=foobar and it also fixed the issue! Disclaimer: I too am new to linux however I believe the generally accepted advice to set pam_service_name=ftp ...


0

Another way: wget -O /dev/null -q ftp://192.168.1.55 Returns 0 if the server is up, otherwise returns positive/negaive value. Expanation: wget tries to reach the url, in this case an ftp server. The -O option redirects the output, if any, to /dev/null so it is not written to a file not to stdout. The -q option suppresses any additional output (like ...



Top 50 recent answers are included