PDA

View Full Version : Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Ubuntu 8.04 LTS


nix4me
31st January 2009, 16:50
I have 2 questions about this howto:

1. In step 3 is says to use uid, gin of 2001. (groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser). But in step 4 the database tables are using uid, gid of 5500 as the default. Is this correct? Shouldn't these match?

2. Do all users added to the database get this same uid,gid (2001)?

falko
1st February 2009, 14:29
1. In step 3 is says to use uid, gin of 2001. (groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser). But in step 4 the database tables are using uid, gid of 5500 as the default. Is this correct? Shouldn't these match?IT doesn't matter as long as you fill in the correct GID (2001) when you create a new group in the MySQL table. But if you like, you can change it to 2001 in the CREATE statement.

2. Do all users added to the database get this same uid,gid (2001)?Yes.

diablo666
17th June 2009, 18:11
2. Do all users added to the database get this same uid,gid (2001)?

If you set the the columns GID and UID you can upload files with each group and user you want.

I've followed this guide

http://www.howtoforge.com/virtual-hosting-with-pureftpd-mysql-on-ubuntu-8.10-p2