tcollogne
July 11th, 2006, 08:36 AM
Hi all,
I am using Kubuntu Dapper Drake and have written this little guide for installing PureAdmin/Pure-FTPD with virtual users on kubuntu (probably also works on ubuntu). I hope this can help some people with problems.
1) Install attached pureadmin
sudo aptitude install pureadmin
2) Create group ftpgroup
sudo groupadd ftpgroup
3) Create use ftp user
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
4) Create ftpuser directory
sudo mkdir /home/ftpusers
5) Create joe user directory
sudo mkdir /home/ftpusers/joe (you can create a directory for each ftp user)
6) Create virtual user joe
sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
7 ) Update virtual user db
sudo pure-pw mkdb
8 ) Create symbolic links
sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB'
11) Create config files (File names are case sensitive)
echo "no" > /etc/pure-ftp/conf/AnonymousOnly
echo "yes" > /etc/pure-ftp/conf/NoAnonymous
echo "/etc/pure-ftpd/pureftpd.pdb" > /etc/pure-ftp/conf/PureDB
echo "yes" > /etc/pure-ftp/conf/PAMAuthentication
echo "yes" > /etc/pure-ftp/conf/CreateHomeDir
12) Modify permissions of /home/ftpusers directory and of any subdirectories. Owner must be ftpuser while Group must be ftpgroup :
sudo chown -R ftpuser:ftpgroup /home/ftpusers
13) Run Command
sudo pureadmin
When you go to manage users, you should see the user joe we created. It seems that adding users with PureAdmin doesn't work for
me, so when I want to add a new user, I use step 6 &7.
If you get the message that the status of the server can not be found (something with permission denied in the logfile viewer), you need to stop pureadmin
then create the dir /var/run/pure-ftpd (sudo mkdir /var/run/pure-ftpd). When you restart pureadmin, the problem is solved.
Beware that every time you shutdown your pc, the directory gets deleted. So you should repeat the above step.
Please post your experiences using the above guide. This can help other people.
Back to top
View user's profile Send private message
[FLeiXiuS: I edited a few things to make it more reable to our viewers. I made step 11 easier to understand. PM me with concerns]
I am using Kubuntu Dapper Drake and have written this little guide for installing PureAdmin/Pure-FTPD with virtual users on kubuntu (probably also works on ubuntu). I hope this can help some people with problems.
1) Install attached pureadmin
sudo aptitude install pureadmin
2) Create group ftpgroup
sudo groupadd ftpgroup
3) Create use ftp user
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
4) Create ftpuser directory
sudo mkdir /home/ftpusers
5) Create joe user directory
sudo mkdir /home/ftpusers/joe (you can create a directory for each ftp user)
6) Create virtual user joe
sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
7 ) Update virtual user db
sudo pure-pw mkdb
8 ) Create symbolic links
sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB'
11) Create config files (File names are case sensitive)
echo "no" > /etc/pure-ftp/conf/AnonymousOnly
echo "yes" > /etc/pure-ftp/conf/NoAnonymous
echo "/etc/pure-ftpd/pureftpd.pdb" > /etc/pure-ftp/conf/PureDB
echo "yes" > /etc/pure-ftp/conf/PAMAuthentication
echo "yes" > /etc/pure-ftp/conf/CreateHomeDir
12) Modify permissions of /home/ftpusers directory and of any subdirectories. Owner must be ftpuser while Group must be ftpgroup :
sudo chown -R ftpuser:ftpgroup /home/ftpusers
13) Run Command
sudo pureadmin
When you go to manage users, you should see the user joe we created. It seems that adding users with PureAdmin doesn't work for
me, so when I want to add a new user, I use step 6 &7.
If you get the message that the status of the server can not be found (something with permission denied in the logfile viewer), you need to stop pureadmin
then create the dir /var/run/pure-ftpd (sudo mkdir /var/run/pure-ftpd). When you restart pureadmin, the problem is solved.
Beware that every time you shutdown your pc, the directory gets deleted. So you should repeat the above step.
Please post your experiences using the above guide. This can help other people.
Back to top
View user's profile Send private message
[FLeiXiuS: I edited a few things to make it more reable to our viewers. I made step 11 easier to understand. PM me with concerns]