From: David D. <da...@en...> - 2005-08-30 18:08:39
|
Jamie Cameron wrote: > On Tue, 2005-08-30 at 21:51, David Derrick wrote: > >>Jamie Cameron wrote: >> >>>On Fri, 2005-08-26 at 22:14, David Derrick wrote: >>> >>> >>>>We have our users set up with default shell /sbin/nologin because they >>>>don't need shell access. The problem is that virtualmin sets up >>>>webalizer to run as the domain username, so no stats are generated >>>>because su fails. I can manually change each one in the webalizer to run >>>>as root but is there a way to have virtualmin set them up by default to >>>>run as root instead of the domain owner? >>> >>> >>>Actually, when webalizer is run using su, Webmin should work around this >>>problem by using a command like : >>> >>>su -s /bin/sh -c /path/to/webalizer >>> >>>However, this is only done on Linux, because the su command on other >>>operating systems doesn't support the -s parameter (as far as I know). >>>Which OS are you using there? >> >>FreeBSD (4.10 on one machine, 5.3 on another). The su command in FreeBSD >>5.3 does have a -s option but it means something completely different. >> >>There is a -m option for su which keeps my login shell and environment >>but Webalizer didn't like it when I tried it. Don't know if it would >>work within Webmin. I don't have enough programmimg know how to tinker >>and try it though. > > > If there is no option to su to specify the shell, then you are out of > luck unfortunately.. Webalizer needs to be run as the server owner so > that files are written with the correct permissions, and su is the only > way to do that :( If I change the option for the logfile in the Webalizer module for Webalizer to run as root then the reports still work even though the owner is set as root on the files. I assume that virtualmin sets up webalizer to run as the domain owner when it sets up the log files. How easy would it be to add an option to Virtualmin's config along the lines of: Run Webalizer as user: (X) Domain owner ( ) [box for something else] If it's not a simple thing then I can continue to change things manually as I need to. Cheers, -- David Derrick Customer Support Operative Entanet Technical Services & Provisions E: da...@en... F: 0870 7709258 W: http://www.enta.net 24/7 Helpdesk/Provisions: 0871 433 3682 |