Forum Moderators: coopster & phranque

Message Too Old, No Replies

adding users

adding users on linux

         

mikec

8:21 am on Feb 24, 2002 (gmt 0)



I hope someone can help me out here. Im running an email system on a website and when a user registers for an account, I want to be able to add them automatically. Right now I need to add them in manually. Im running on a linux machine with apache/php/perl/python. The problem is I have a program sitting in a certain directory with root permissions. I need to send 5 or 6 arguments to the program and write out the results. Ive tried executing ssh through php and sending the arguments that way, but i cant seem to change to root and/or change to the directory and run the program. Im not too familiar with all the cpan modules for perl, so ive been trying to do this mostly through php. Does anyone have any ideas or know somewhere that might give me some info on this subject.

thanks

Josk

9:49 am on Feb 25, 2002 (gmt 0)

10+ Year Member



Have you thought about using a root cron script that adds/deletes users based on some kind of list of tasks? Though I'd been worried about spammers getting hold of it, and anything needs to run as root is suspect...