2009/1/21 RYAN vAN GINNEKEN <k...@computerking.ca>:
>
>> Try
>> su -l apache -s /bin/sh -c "/usr/sbin/bconsole -n -c
>> /etc/bacula/bconsole.conf"
>>
>> works OK?
> Nope get permission denied error also i cannot run the command like you have 
> above and must use a line like this here is the output? could the php-value 
> still work?? or what about the one in the next email the more secure one????/
>
> r...@ns1:/etc/bacula# su www-data -s /bin/sh -c "/etc/bacula/bconsole -n -c 
> /etc/bacula/bconsole.conf"
> /etc/bacula/bconsole: line 22: /sbin/bconsole: Permission denied
>

This is not a bug bacula, webacula or php.

/etc/bacula/bconsole - is shell script.
Sets permission on /sbin/bconsole and use "/sbin/bconsole" instead
"/etc/bacula/bconsole".

You should have to make that it will work:
su www-data -s /bin/sh -c "/sbin/bconsole -n -c /etc/bacula/bconsole.conf"


-- 
with best regards

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to