Re: Daemon restart by non-root user
On Thu, 2003-10-09 at 18:39, Reuben D. Budiardja wrote: On Thursday 09 October 2003 05:53 pm, Srini Amble wrote: I have a daemon which is started automatically during the system boot-up (it is in /etc/rc.d/init.d). During the life of the daemon users can change the configuration because of which the daemon will have to be restarted. All processes which are part of Daemon are owned by root and hence non-root users cannot kill and consequently restart fails. Can anyone suggest a way to handle this? I am using RH7.2 for those who care. Maybe you can use sudo for the user that needs to restart the daemon: man sudo man sudoers RDB Yup. This is exactly what sudo is for. Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
RE: Daemon restart by non-root user
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Srini Amble Sent: Thursday, October 09, 2003 5:53 PM To: [EMAIL PROTECTED] Subject: Daemon restart by non-root user I have a daemon which is started automatically during the system boot-up (it is in /etc/rc.d/init.d). During the life of the daemon users can change the configuration because of which the daemon will have to be restarted. All processes which are part of Daemon are owned by root and hence non-root users cannot kill and consequently restart fails. Can anyone suggest a way to handle this? I am using RH7.2 for those who care. Thanks for all the help Srini Presuming you have access to source code.. have the daemon process check the modify time on the config file or record iF it changed since the last time it looked or booted, then have the daemon reread the file and reset itself. OR Move it from an RC based process to an INIT run process (inittab and have it exit and auto restart upon config file changes. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list
Re: Daemon restart by non-root user
On Thursday 09 October 2003 05:53 pm, Srini Amble wrote: I have a daemon which is started automatically during the system boot-up (it is in /etc/rc.d/init.d). During the life of the daemon users can change the configuration because of which the daemon will have to be restarted. All processes which are part of Daemon are owned by root and hence non-root users cannot kill and consequently restart fails. Can anyone suggest a way to handle this? I am using RH7.2 for those who care. Maybe you can use sudo for the user that needs to restart the daemon: man sudo man sudoers RDB -- Reuben D. Budiardja Department of Physics and Astronomy The University of Tennessee, Knoxville, TN - To be a nemesis, you have to actively try to destroy something, don't you? Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. - Linus Torvalds - -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list