Bacula-users

Re: [Bacula-users] Webacula on dapper

2009-01-21 17:09:08
Subject: Re: [Bacula-users] Webacula on dapper
From: Yuri Timofeev <tim4dev AT gmail DOT com>
To: RYAN vAN GINNEKEN <king AT computerking DOT ca>
Date: Thu, 22 Jan 2009 00:00:35 +0200
2009/1/21 RYAN vAN GINNEKEN <king AT computerking DOT 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????/
>
> root@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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users