Create user automatically via php web form
Hello all. Been a while since I've posted.
I'm working on a server project for me and some friends for data backup and storage.
I want to create local users from information collected in a web form I intend to create with php.
I will plan on having a database of user information so they can make some changes to their account. Not sure exactly what, but just to make it seem more offical.
I want to give them access to rsync (so ssh by default), ftp, owncloud and http of their own directories. I intend to use quotas to regulate the amount of storage space available to each user.
To the best of my knowledge, it is not possible to directly create a user via php do to privledge restriction. The only way I can think to do it is have the form store the information to a file and have a cron job create the account for me. I'm not sure how well this will work unless I tell the cron job to run frequently enough to make it convenient.
Does anyone have a better idea of how I might do this?
I'm aware of the possibility of using virtual users, but then I loose some ability to control quotas.