the more I think I know the less I really do.. sorry about this but I've confused myself I want to run zope as user www. so in the start script I use "-u www". If I am root and run ./start & zope barfs on me and gives me the message that I need to read the setuid.txt file... okay. (I chowned all zope files to www:www) But I don't want to run zope as root, and zope won't listen on port 80.. so, back to running zope as user www. I can su to user www, run zope and all is well. terrific. Now I want to put a startup script in /usr/local/etc/rc.d. So now I'm back to starting zope as root again right? How can I get the startup scripts to launch zope as user 'www'? I'm using freebsd and zope 2.6.? latest. -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"
David.Bear@asu.edu (David Bear) on 12/11/03 wrote:
I can su to user www, run zope and all is well. terrific. Now I want to put a startup script in /usr/local/etc/rc.d. So now I'm back to starting zope as root again right? How can I get the startup scripts to launch zope as user 'www'?
set it in cron, eg @reboot /path/to/zope/startupscript <--> george donnelly ~ http://www.zettai.net/ ~ "Quality Zope Hosting" Shared and Dedicated Zope Hosting ~ Zope Servers ~ Zope Websites Yahoo, AIM: zettainet ~ ICQ: 51907738 ~ Sales (USA): 1-866-967-3669
How can I get the startup scripts to launch zope as user 'www'? Install /usr/ports/security/sudo and use something like: sudo -u zopeuser /path/to/zope/start
That way FreeBSD will make sure the startup script of Zope is executed as user 'zopeuser'. Regards, Pieter -- http://zwiki.org/PieterB
participants (3)
-
David Bear -
george donnelly -
PieterB