I am trying to write a control panel for FreeBSD using CGI scripts. Basic functionality I am looking for is adding users, adding virtual domains to apache, basic dns control, etc, all through web interface.
I have run into two problems: I can add a user by calling a pipe to "pw", but I cannot change her password by calling a pipe to "passwd" - for some reason it requires interactive input.
Any ideas?
Second problem: I will have to get my CGI scripts to run as a superuser. What is the best approach? suidperl? Where can I get docs on that?
Thanks in advance.
I have run into two problems: I can add a user by calling a pipe to "pw", but I cannot change her password by calling a pipe to "passwd" - for some reason it requires interactive input.
Any ideas?
Second problem: I will have to get my CGI scripts to run as a superuser. What is the best approach? suidperl? Where can I get docs on that?
Thanks in advance.