Browsing articles tagged with "proftpd - Admins Goodies"
Jan 6, 2013
tom

Setting up ProFTPd with default home directory based on username

I am setting up ProFTPd with MySQL authentication. It works so far, I can connect. However, I want to set the SQLDefaultHomedir directive so that I don’t have to include it in my database. I want to include as part of the directive the username used to log in to the server. Thus, for instance, if someone logged in as dstrout, their home directory should be set to /var/www/projects/users/dstrout. How can I do that? Can […]

Continue Reading »
Jul 18, 2012
tom

pam_ecryptfs: Error getting passwd (ProFTPD)

proftpd: pam_ecryptfs: Error getting passwd info for user [USERNAME] I am getting this error in the syslog nearly every time any user connects via FTP, the user is able to connect and the session seems to continue without a hitch. ProFTPD.log shows no error, this warning only show in the syslog. My VPS is running Ubuntu 11.10 and Proftpd 1.3.4rc2 from the Ubuntu Repo, I have made only a few changes to the config (no […]

Continue Reading »
Jun 18, 2012
tom

How to use sudo with WinSCP and ProFTPd?

I need to run the SFTP fileserver binary as root, but direct root login is not allowed. In WinSCP, if I use “default” on SFTP server protocol option everything works as expected. Following the instructions in sudo in WinSCP, I added adminuser ALL = NOPASSWD: /usr/sbin/proftpd” to /etc/sudoers. I then tried using “sudo /usr/sbin/proftpd” on SFTP server protocol option (it works on the command line without any prompts) but it brings up “Cannot initialize SFTP […]

Continue Reading »
May 9, 2012
tom

How to Jail certain users in ProFTPD on Unix (Mac OSX)

I have ProFTPD set up so that I can remotely upload new php files and suchlike to my htdocs on my server. That’s all fine, but I would like to jail the ‘nobody’ (No write, Read/Download only) user into a subdirectory (htdocs/ftp) so that any users can’t have fun reading my mySQL connection scripts, which are in the htdocs folder. I don’t want to set the DefaultRoot to /ftp, as then I can’t use FTP […]

Continue Reading »
Apr 7, 2012
tom

CentOS install proftpd with yum

Server: CentOS 6.2 64bit How can I install Proftpd using yum? A search for the package doesn’t find it: yum list proftpdError: No matching Packages to list Although my CentOS 6 VPS does find it, but this server doesn’t. I have read I need to install an rpm of some kind. How would I do that and where is the reliable place to get it (64bit)? I have done Proftpd installs by compiling the source […]

Continue Reading »
Mar 1, 2012
tom

Proftpd is missing mod_sql_passwd

I did the setup for a ProFTP server on my Ubuntu workstation before-hand, but when replicating it on a Ubuntu server, mod_sql_passwd is simply missing. When I enable the module, I get the following error: Fatal: LoadModule: error loading module ‘mod_sql_passwd.c': Permission denied on line 51 of ‘/etc/proftpd/modules.conf’ mod_sql_passwd files (.so and .c) are simply missing, whereas on my workstation it was a simple matter of enabling the configuration. The biggest difference with the server […]

Continue Reading »
Feb 20, 2012
tom

Proftpd is running, but I can’t establish a connection through FileZilla

I’m working on a server running Red Hat Enterprise 6.2. I installed proftpd 1.3.3g using yum. Proftpd starts without any error messages, and it appears to be listening on port 21. I would post an image that demonstrates this, but I’m still a new user so I’m not yet allowed to post images. When I run: ps -ef | grep [PID] I see: nobody [PID] 1 0 17:36 ? 00:00:00 proftpd: (accepting connections) The command: […]

Continue Reading »
Jan 23, 2012
tom

ProFTPD – Failed to retrieve directory listing while using TLS

I have problem with my ProFTPD server. When I try to connect to the server using TLS then I get timeout after MLSD command. It only happens whenI use TLS – without it it works perfectly. I checked these logs: proftpd.log – USER xxx: Login successful. tls.log – TLSv1/SSLv3 connection accepted … Protection set to Private Where could be problem please? I can provide more informations, just ask for them in comments. EDIT: Today I […]

Continue Reading »
Jan 4, 2012
tom

Proftpd CentOS user can only login with a /bin/bash shell

I’ve created a user and assigned a password and group (new group). The problem is this user can only login to FTP (proftpd) if he has shell = /bin/bash If I set the shell to /bin/false then Proftpd doesn’t let him in and serves a 530 Login incorrect response. I want the user to be able to login to FTP but no other access, so no access to login via SSH. The /etc/proftpd.conf is all […]

Continue Reading »
Dec 28, 2011
tom

proftpd overwrite permission denied ftp user

I have a freebsd server with proftpd installed. When I chmod 777 the directory I can overwrite files, but using 755 permissions on the folder I can not overwrite files in the folder. In the conf file: I changed ‘AllowOverwrite’ to ‘on’ I changed User and group to ‘root’ but that didn’t help. How do i fix this error? Here is my proftpd.conf file: ServerName “Servername” ServerType standalone ServerIdent on “Servers identifying string” DeferWelcome on […]

Continue Reading »
Pages:123456»