Project

General

Profile

Start and stop redmine server without root access.

Added by Manu ps over 9 years ago

Is there any one know how to start and stop redmine server without root access.?


Replies (2)

RE: Start and stop redmine server without root access. - Added by Martin Denizet (redmine.org team member) over 9 years ago

Hello Manu,
It depends of your setup. What is your web server?
If you want to allow users to stop/start/restart your web server without granting them root/shell access, I suggest you to check out Monit apt-get install monit. It allows you to very simple have a password protected web page allowing users to perform operations you define.
See screenshot of Monit: http://mmonit.com/monit/img/screenshots/4.png
Cheers,

RE: Start and stop redmine server without root access. - Added by Pavel Potcheptsov over 9 years ago

You should give permission for specified user to execute restart script.
See /etc/sudoers

# User privilege specification
root    ALL=(ALL:ALL) ALL
someuser     ALL= /sbin/, /usr/sbin/, /usr/bin/, /etc/init.d/apache2, /usr/lib/openssh/sftp-server

So you need to create user, create script for restart and add that user to /etc/sudoers file and grant him patch to script.

    (1-2/2)