Tag Info

Hot answers tagged

5

Enable VerboseLog yes in your pureftpd.conf. This logs all actions. Alternatively you can use the -d or --verboselog commandline options at the startup of pureftpd. Where these logs go depends on your distribution. This is often /var/log/messages or a separate pureftpd.log.


5

You could temporarily replace that file with a much larger file, or a FIFO (see mkfifo command) and then look for that process again.


5

You need to tell your client to transfer in binary mode.


4

My guess is that your FTP server is behind a NAT firewall, and that you've got the ip_conntrack_ftp helper module (or equivalent) running on the firewall device. Basically, this module scans the data stream looking for instances of the internal IP address, and rewrites them to the external IP address. It can't do this for TLS-secured FTP connections, ...


3

Mutt is probably looking at the wrong place for the sendmail command. :set sendmail from within mutt gives you the location where mutt is looking for it. It can also be used for setting the right location e.g. :set sendmail="/usr/sbin/sendmail" As a side note, mutt is a great program, but nail or mailx are usually the tools of choice for use in a script.


3

Pure-ftpd does not natively support blocking specific file types. However, you can accomplish this by running a script after the upload to delete the undesired file types. You would use the pure-uploadscript program to accomplish this. An example can be found here: http://www.webhostingtalk.com/showpost.php?p=6277573&postcount=4 (You will probably ...


3

You can use -f option of strace for tracing child processes. Get pid of suspicious process, then execute strace -f -p pid -o /tmp/strace.log. You should search "connect" or "RETR" keyword.


3

No, you cannot do that using iptables only. Fail2ban will do exactly what you want, possibly (it's configurable) through iptables. By itself, however, iptables is only a firewall, stateful if you want it to be but still nothing more than a firewall. You can set up rate limiting rules for new connections, but that's about as close as you can get without a ...


3

Here is the website describing your log format. It has a good description of what every field in your log file means.


2

drw-rw-r-- some_website_backups As you can see, the leaf directory does not have execute permissions - for anybody.


2

When use want a complete removing of a package you need to purge it (usaualy it means removing also config files). aptitude purge pure-ftpd-mysql Anyway, when a config file for an installed package is missing, you can use the following command to force dpkg to reinstall original missing configuration files : dpkg --force-confmiss -i ...


2

Try this: echo "10000 11000" > /etc/pure-ftpd/conf/PassivePortRange I found this by reading the manpage for pure-ftpd-wrapper: pure-ftpd-wrapper reads the configuration for the Pure-FTPd daemon from files in the directory /etc/pure-ftpd/conf. Each file in this directory is related to a command line option. ... Two numbers ...


2

I'm using pure-ftpd 1.0.35 Ubuntu 12.04.3 LTS. Don't work echo 'yes' > /etc/pure-ftpd/conf/DontResolve The parameter 'DontResolve' changes '/var/log/syslog' but it don't change '/var/log/auth.log'. So for Fail2ban # nano jail.local [pure-ftpd] enabled = true port = ftp,ftp-data,ftps,ftps-data filter = pure-ftpd #logpath = /var/log/auth.log ...


2

From the pure-FTPd FAQ How do I give access to the 'pure-ftpwho' command to non-root users? The 'pure-ftpwho' command is restricted to root by default, because users probably shouldn't be given the ability to spy what other users are doing on the same host. However, it's safe to put the setuid bit on that command, in order to have it work as ...


2

Starting the process with a different umask (-U) flag set will solve the permissions issue. For example: /usr/sbin/pure-ftpd -U 113:002 & Note that each umask number is subtracted from 7 to get the final permissions: 113:002 results in 664 for files and 775 for directories.


1

What filesystem do you have? You can try setting immutable attribute on that file chattr +i filename


1

As stated, a file can be removed if you have write permission on the directory where it resides. However, you cannot remove a directory if it isn't empty, even if you have write permission on the parent directory. Thus, this hack should work: mkdir protected touch protected/test sudo chown -R root:root protected sudo chmod -R 755 protected Now if you try ...


1

Nevermind, ftp isn't necessary. Just remembered ssh can be used to transfer files via scp. That is working. There's more than one way to skin a cat. EDIT: This is the best way to solve the situation of installing or setting up a cloud computer instance because they always give you ssh access. Since scp runs on stop of ssh to transfer files, it means ...


1

I've just had a similar problem. I've added user using pure-pw useradd and get 530 Login authentication failed. The solution was a symlink added to /etc/pure-ftpd/auth directory pointing to /etc/pure-ftpd/conf/PureDB (there is a path to file that keeps ftp users) that shows in alphabetical order before other files in auth, e.g. cd cd /etc/pure-ftpd/auth/ ...


1

You can use: /etc/init.d/pure-ftpd restart Or: service pure-ftpd restart


1

You have to specify masquerade IP on the passive command.. right now your passive command returns 192,168,15,2 (which is a private IP and will not work over public internet connections) '-P ': Force the specified IP address in reply to a PASV/EPSV/SPSV command. If the server is behind a masquerading (NAT) box that doesn't properly handle stateful FTP ...


1

Create a virtual user account on pure-ftpd. pure-pw useradd USERNAME -u ftpuser -d /backups -m Note that ftpuser is the user profile that the FTP process will run as once the user logs in. Essentially it is a "skeleton" profile for the user account. This makes it easier to configure permissions based on real groups which apply to your virtual users.


1

I ended up working this out myself and thought I'd share the steps below... If you're using the pureftp.passwd file to manage your virtual-users then follow these steps: Backup pureftp.passwd first before making any changes. Mine was in /etc/pure-ftpd/. $ cd /etc/pure-ftpd/ $ cp pureftp.passwd pureftp_backup.passwd Open the pureftp.passwd file ...


1

You have to think of the bandwidth consumed on your server. Unlike HTTP connections FTP connections can be very long when downloading a large file (even days if the files are very big). But let's say that each session will take less than a minute to transfer the file. So you need 2000 concurrent connections. Let's assume that your Co-location has 1 Gbps ...


1

it's already running, kill the pid and try again...


1

I doubt the MySQL-server package you have installed from some third party (maybe mysql.com) would remove the databases on package removal but you can always see what scripts are run pre/post install in an RPM rpm --query --scripts MySQL-server should show all the scripts associated with the package and you can read through them to see what is automated. ...


1

The AS400 shop altered their script, and that fixed the problem. They are not aware of anything that changed that would have caused the problem. Thanks commenters!


1

For the records. The problem was that pureftpd have a "MinUID" variable and it doesn't allow an user of UID < 100 to log in.


1

FTP in passive mode involves the client making a second data connection to the server on a port number indicated in the control connection on port 21. The conntrack module sniffs the control connection and detects the port number of the data connection, and then treats the incoming data connection as RELATED, which would usually be accepted by this rule: -A ...


1

Have you looked at Posix ACLs?



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