Try check the privileges on the path to your qtpasswd file. It might
be set to permit only root-write access (which is typically the way
it should be). If you're trying to execute qtpasswd through some
sort of web/cgi script, it might be running as a non-privileged user
(ie. 'nobody') which would be why it isn't working. You do not want
your script running as root though, so that's not the solution.
Instead, what you can do is create a fresh qtpasswd file someplace
else on your machine in a directory that is writeable by whatever
user your web/cgi script is running under (ie. 'nobody' or
whatever). Then, to get QTSS (or DSS) to use this custom-location
qtpasswd file, edit (as the root user) the streamingserver.xml file
and change the path for the qtpasswd parameter from its default to
point to your new custom-location qtpasswd file.
Now, you should be able to run the qtpasswd tool via a command-line
script via a browser/web CGI, with write-access to the new custom-
location qtpasswd file.
As always, for security take precautions and be careful when
permitting a user like 'nobody' to have write access on your machine.
On Nov 15, 2005, at 1:35 PM, Aziz wrote:
> Greetings guys,
> I am trying to excute qtpasswd username -p password, it works fine
> when I do it through the command prompt, but when I do it with the
> browser it wont excute?
> I am using shell_exec with root access (sudo)..
> I appreciate any help, btw all other scripts work.
> Is it something qtpasswd must be configure to?
> Do not post admin requests to the list. They will be ignored.
> Streaming-server-dev mailing list (Streaming-server-
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/streaming-server-dev/brown% > 40apple.com
> This email sent to brown@appl... >