What's the VCL compile directory when starting varnishd?

姚伟斌 nbubingo at gmail.com
Mon Mar 19 10:51:11 CET 2012


Oh, I have found the reason. The file owner of 'varnishd' is root and
set with setuid. The account of admin can start the varnishd, but It
can't access the C source file created by varnishd.

2012/3/19 姚伟斌 <nbubingo at gmail.com>:
> Hi folks,
>
> In our company, all the packets have its specific install directory
> and account. We use the account named 'admin' to start the varnishd
> daemon. But when I typed the start command. It shows the error below:
> #####################################################
> bash-3.2$ /opt/company/install/varnish/sbin/varnishd -P
> /home/admin/varnish/pid/varnish.pid -a :8888 -f
> /home/admin/varnish/conf/varnish.vcl -n /home/admin/varnish/cache -T
> 0.0.0.0:2000 -t 120 -w 5,1000,120 -u admin -g admin
> Message from C-compiler:
> cc1: error: ./vcl.RBz_GFcY.c: Permission denied
> Running C-compiler failed, exit 1
>
> VCL compilation failed
> #######################################################
>
> I want to know the VCL compile directory and then I can specify the
> file permission.
>
> Thanks.



More information about the varnish-dev mailing list