On Wed, 24 Oct 2001, Daniel Falkenberg wrote: > I am working on a CGI script that needs to execute this command from a > sub within the script... > > system("/usr/sbin/adduser test"); > > I can issue this from a single non-CGI script and it works fine. I have > also double checked the permission on the file but it still won't > execute this system call?
adduser is a system program that should be run as root. If you are running this in a CGI environment, you won't be able to run the script because the user the CGI script is running as is the same as that of your web server (probably 'nobody'), and is not allowed to run the program. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ A man was reading The Canterbury Tales one Saturday morning, when his wife asked "What have you got there?" Replied he, "Just my cup and Chaucer." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]