RHEL 7.5

Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities

All the application binaries and their dependents are currently owned by root(uid/gid).

In our environment, root access(sudo) is provided for fours weeks only, on fresh production machine. We need to avoid relying on root access.

So, for future access to this application, we would like create appuser a non-root user


and chown/chgrp application directory structure to appuser

As appuser, Does it require root access to start/stop app using service & chkconfig?

  • you cant use those commands without root per se. You define limited commands in sudo – Rui F Ribeiro Oct 29 '18 at 14:34
  • create a script maintained by root that starts / kills the service and give the user sudo access to precisely these files? then again, is it not normally part of a sysadmins job to maintain services? – Benj Jun 2 '19 at 5:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.