mmmm ok.

I treated this options:
whit, for example, ossec wui user is user4:

$ sudo -u user4 /var/www/var/ossec/bin/manage_agents
Password:
2009/11/02 10:06:31 manage_agents(1203): ERROR: Invalid user '' or group 
'ossec' given.


$ sudo -u user4 /var/www/var/ossec/bin/ossec-control start
Starting OSSEC HIDS v2.1 (by Trend Micro Inc.)...
cat: /var/www/var/ossec/var/start-script-lock/pid: No such file or directory
cat: /var/www/var/ossec/var/start-script-lock/pid: No such file or directory
cat: /var/www/var/ossec/var/start-script-lock/pid: No such file or directory
cat: /var/www/var/ossec/var/start-script-lock/pid: No such file or directory
cat: /var/www/var/ossec/var/start-script-lock/pid: No such file or directory
/var/www/var/ossec/bin/ossec-control[303]: cannot create 
/var/www/var/ossec/var/start-script-lock/pid: No such file or directory
2009/11/02 10:00:28 ossec-maild(1203): ERROR: Invalid user 'ossecm' or group 
'ossec' given.
ossec-maild: Configuration error. Exiting

OK, now I treat whit ossecm user, ossec user, ossec group but the error is same.

Dimitri.-
http://deoxyt2.livejournal.com
OpenBSD - Free, Functional & Secure


--- El dom, 1/11/09, Michael Starks <[email protected]> escribió:

> De: Michael Starks <[email protected]>
> Asunto: [ossec-list] Re: manage_agents(1203)
> Para: [email protected]
> Fecha: domingo, 1 de noviembre, 2009 17:32
> 
> Dimitri wrote:
> 
> > $ sudo /var/www/var/ossec/bin/manage_agents
> > 2009/10/29 17:46:03 manage_agents(1203): ERROR:
> Invalid user '' or group 'ossec' given.
> > 
> > OSSEC run on OpenBSD 4.5 and until today is OK, but I
> tried add a new client and display this error.
> 
> It probably has something to do either with the chroot or
> environment
> while running under sudo. Maybe it will work if you run it
> as the ossec
> user (pass it as an option to sudo).
> 



Reply via email to