I'm creating an internal tool that needs a bit of cpanel/webmin type functionality, but this isn't a situation where I could use one of those
Right now I need to be able to create linux users, groups, and directories via PHP. Here's what I have right now:
copies of useradd/groupadd/chpasswd in a user's /bin, SUID'd by root. the permissions are setup so only root and a specific group can access them (the group that the user is in).
If I run this from command line it works fine, but I was hoping to use suexec to access these, but it seems as if PHP won't work with suexec unless I run it through CGI which I don't really wanna do.
I could also allow wwwrun to access these SUID'd binaries but that seems a little insecure to me.
What is my next step here? Thanks!