![]() Starting ftp server: Running: /usr/sbin/pure-ftpd -l puredb:/etc/pure-ftpd/pureftpd.pdb -l puredb:/etc/pure-ftpd/pureftpd.pdb -O clf:/var/log/pure-ftpd/transfer.log -E -u 1000 sudo pure-pw passwd files + Done sudo /usr/sbin/pure-ftpd -j sudo /usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb & The visual log helps out a bit too.ĪND testing with FTP, not SFTP – SFTP does not sudo vi sudo kill 5108 Most of the virtual user creation can be done there. It works great and is very simple to administer with PureAdmin. # /usr/sbin/pure-ftpd -j -lpuredb:/etc/pure-ftpd/pureftpd.pdb & I prefer it off so I can strictly use virtual accounts maintained within the pdb file.įinally it's time to enable the pdb file and yes you do have to stop the server in order to avoid errors stating that the port is already in use. Using PAM can allow public access to administrative accounts using pure-ftpd, that's why I disable it within pure-ftpd. Make sure that a backup file (.PAMAuthentication~) isn't created because it will create a conflict when trying to restart service. # gedit /etc/pure-ftpd/conf/PAMAuthentication # ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB NAME and DIRECTORY can be whatever you want them to be.Ĭreate the database and make sure that the pure-ftpd configuration strictly uses the pdb file for managing accounts: Type in the password when prompted for the new user twice. # pure-pw useradd NAME -u ftpuser -d /DIRECTORY # useradd -g ftpgroup -d /dev/null -s /etc ftpuser You might not need pureadmin but if you're using a desktop environment I would definitely think about installing this as the graphical front-end. This is instruction for installing pure-ftpd on a newly installed dapper installation. I just needed to condense it so you guys could know which step I'm talking about. Most of this stuff is documented here: Īnd from previous posts in this thread. ![]() OK, so finally getting it to work involved following these instructions below, except that I also had to kill the pure-ftpd process manually in order to restart it. Unable to start a standalone server: Address already in sudo fuser -n tcp 21 Tcp6 0 0 *:ftp *:* LISTEN 4568/pure-ftpd sudo /usr/sbin/pure-ftpd & Tcp 0 0 *:ftp *:* LISTEN 4568/pure-ftpd (SER Stopping ftp server: sudo netstat -ap | grep "*:ftp" Exit 1 sudo sudo /etc/init.d/pure-ftpd stop (Note that the proftpd package was removed by the pureftp sudo groupadd sudo useradd -g ftpgroup -d /dev/null -s /etc sudo pure-pw useradd files -u ftpuser -d /home/ftpusers/filesĮnter it sudo pure-pw sudo /usr/sbin/pure-ftpd & Not backing up/removing/var/run/proftpd', it matches ^/var/.*. Removing user ftp' sudo deluser -remove-home proftpd NOTE: Probably should have used sudo deluser -remove-home ftpuser or sudo userdel -r sudo userdel sudo delgroup ftpgroupĭoing a thorough job of sudo deluser -remove-home ftp Trying to get a look at user account information, see if it matches sudo vi /etc/shadow Groupadd: group ftpgroup sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser debian get user infoĭebian show user sudo aptitude install pure-ftpd-common sudo groupadd ftpgroup It can't be effortlessly tied to the ISP-style email database (new fields need to be added, gid and stuff) so we'll just manage database users directly. You can always change your mind later by reconfiguring this package with "dpkg-reconfigure pure-ftpd-common".ĭo you want pure-ftpwho to be installed setuid root?įor "Enable virtual chroots ?" stayed with No. Still, it is only recommended that you install any program setuid root if you need it. ![]() ![]() Since it's a fairly trivial program, this poses little security risk. The pure-ftpwho program only works with root privileges. Standalone operation is more efficient for busy ftp sites.Īlso left at the default for the setuid question: Using inetd is a suitable option for small ftp servers because the inetd super-server will only launch pure-ftpd to handle incoming connections. Taking this from the top, with more detail: Installing PureFTP on Debian Etch ![]() The username and password I set up is rejected logging in. Now what? How do we actually connect to it? Sudo pure-pw useradd agaric -u ftpuser -d /home/ftpusers/agaric Sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser Sudo apt-get install pure-ftpd-common pure-ftpd PureFTP was the first that got me to the install instructions: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |