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)?
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. Yes.
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