Is there a secure way to use php to add users to the system? I want to make a script that add users to my OpenBSD system, but I don't want to make a huge security hole.
Should I just chroot the users directory and set it so they can't get to root?
Does PHP have anything built-in to do this?