[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Problem running system in Perl scripts via Apache



K Old,

2 things I noticed...

1. you said you had no shadow user on the failing box...and the shadow file belongs to root.
Make the 2 boxes exactly the same if you can..

2. what is the value of $adduserpath on both system, and the permissions 

3. just another quick thought, why not print who is running the script, as part of your debug
you should have to print user, home, shell & passwd, to really know what is going on.


> system "$adduserpath", "$input{'user'}", "-d", "$input{'home'}", "-m", "-s",
> "$input{'shell'}", "-p", "$passwd";
> 
> Back to my orignial question, this line never executes.....probably because
> the don't have the proper permissions.....meaning the process is not being
> run as root.
> 
> The log shows an error message from adduser saying that it can't lock the
> file.
> 
> *****Keep in mind that the above code works on another server that someone
> else setup*******  I have done my best to duplicate the environment.

--
Most people enjoy the inferiority of their best friends.
~ Lord Chesterfield ~





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]