You never want a installer to change the sudo file. That's bad juju, man. You need to do it yourself. Also, I would caution against copying a sudo file from someplace else. Back-up the /etc/sudo file first, then make your edits. Also, you need to change the ownership as well. Here are the instructs for the changes to sudo (from http://www.zenoss.com/docs/installsrc):
*** --------------------------------------------------------------- 1.3 Configure sudo --------------------------------------------------------------- The daemons zenping zendisc and zensyslog need to be started as root. If you want to be able to run the zenoss control scripts while you are the user you setup to run zenoss you might use sudo. To do so add the following to your /etc/sudoers. (fill in the correct username, hostname, and /path/to/zenoss) zenoss your_hostname = NOPASSWD: /path/to/zenoss/bin/python,/bin/kill if you have env_reset setup in your sudoers file make sure that PYTHONPATH and ZENHOME get passed properly by doing the following Defaults env_keep += "PYTHONPATH ZENHOME" **** I ran into a issue with the sudo commands, and I changed the first entry to: zenoss hostname=(ALL) ALL I plan on going back and tightening that up, but I wanted to get it running. On 12/1/06, midou michkat <[EMAIL PROTECTED]> wrote:
it's right!! the problem is that the rpm does not change sudo himself! i have to do it myself each time with copying the zenoss/etc/sudoers into /etc/sudoers!! And even if i do it and start zenoss he does not change rights for zenoss directories from root to zenoss!! have you any idea??! >From: Dennis B.Hopp <[EMAIL PROTECTED]> >Reply-To: General discussion of using zenoss system ><[email protected]> >To: General discussion of using zenoss system <[email protected]> >Subject: Re: [zenoss-users] zenoss startup!! >Date: Thu, 30 Nov 2006 13:13:52 -0500 > >It looks like you need to setup sudo so that zenoss can run a few commands >as root. > >--Dennis > >On Thu, 30 Nov 2006 17:41:24 +0100, "midou michkat" ><[EMAIL PROTECTED]> wrote: > > please guys! could anyone help me !! > > i had always this error in the startup: > > [EMAIL PROTECTED] ~]$ zenoss start > > Daemon: zeoctl . Traceback (most recent call last): > > File "/opt/zenoss/lib/python/zdaemon/zdrun.py", line 719, in ? > > main() > > File "/opt/zenoss/lib/python/zdaemon/zdrun.py", line 716, in main > > d.main(args) > > File "/opt/zenoss/lib/python/zdaemon/zdrun.py", line 243, in main > > self.run() > > File "/opt/zenoss/lib/python/zdaemon/zdrun.py", line 256, in run > > self.opensocket() > > File "/opt/zenoss/lib/python/zdaemon/zdrun.py", line 278, in >opensocket > > sock.bind(tempname) > > File "<string>", line 1, in bind > > socket.error: (13, 'Permission denied') > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >. > > . > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >. > > . > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >. > > . > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >. > > . > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >. > > . > > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . >. > > . > > > > > > help please!! > > > > _________________________________________________________________ > > Les rÃ(c)vÃ(c)lations de la starac 6 commentÃ(c)es par JÃ(c)rÃ(c)my! > > http://starac2006.spaces.live.com/ > > > > _______________________________________________ > > zenoss-users mailing list > > [email protected] > > http://lists.zenoss.org/mailman/listinfo/zenoss-users > >_______________________________________________ >zenoss-users mailing list >[email protected] >http://lists.zenoss.org/mailman/listinfo/zenoss-users _________________________________________________________________ Découvrez Live.com : le nouveau moteur de recherche par Messenger! http://www.windowslive.fr/livecom/ _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
