Hello,

On 9/19/2006 9:54 AM, Diego wrote:
> Hi, I need to run a script to stop a service before do the backup. Only 
> one user can stop this service, this user not need password for run the 
> stop command.
> In my bacula-dir.config I have:
> 
> run before job =  "/opt/bacula/script_stop_service"
> 
> In the script_stop_service I have:
> 
> su - service_user -c "command_service stop"
> 
> And the error is "RunBefore: standard in must be a tty"
> The script_stop_service permissions are:

This doesn't look like a permissions problem. The message seems to be 
quite clear, and perhaps using sudo instead of su helps.

Arno

> 
> - rwx r-x r--  1 root bacula      script_stop_service
> 
> Any suggestion?
> 
> -- 
> By Diego...  >8-P
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to