From: David D. <da...@en...> - 2005-08-30 11:48:20
|
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. -- 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 |