On Sat, Nov 28, 2009 at 04:27:12PM +0700, ~Lst wrote:
> On Sat, Nov 28, 2009 at 4:06 PM, Andre Keller <a...@ak.cx> wrote:
> > Am 28.11.2009 09:45, schrieb ~Lst:
> >> -bash-4.0# cat /etc/rc.conf.local
> >> bgpd_flags="-r /var/www/logs/bgpd.rsock"
> >>
> >> The socket is working...
> >>
> >> -bash-4.0# bgpctl -s /var/www/logs/bgpd.rsock show ip bgp memory
> >> RDE memory statistics
> >
> > Does it work too when you run it with the apache user (I guess www) from
> > console ?
> 
> No it doesn't, I don't know exactly what it means with `account is
> currently not available'.
> 
> -bash-4.0# su www -c '/var/www/bin/bgpctl -s /var/www/logs/bgpd.rsock
> show ip bgp memory'
> This account is currently not available.
> 
> -bash-4.0# id www
> uid=67(www) gid=67(www) groups=67(www)

Look at the shell of the www account. Then run /sbin/nologin, or
/sbin/nologin -c '/var/www/bin/bgpctl -s /var/ww/logs/bgpd.rsock' for
that matter.

                Joachim 

Reply via email to