How to give permissions to users to start and stop only one service
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to give permissions to users to start and stop only one service
Dear All,
I have cadence server and students access this server from vncviewer
now i want to do that when student access server they only start and stop only cadence server.if i place students in visudo than they have full permissions .
cadences start from /root/cadence .i want to do that user only access this directory
please help me in this regard
now i want to do that when student access server they only start and stop only cadence server.if i place students in visudo than they have full permissions .
Have you read the man page for /etc/sudoers? You can restrict them to executing only a single command rather than completely opening up access. The recommended way is to add permission in /etc/sudoers through group membership (%group entry).
If you have administrator permissions on the box then yes. It is recommended to create a group, add users to the group, and then grant that group sudoers permission to start and stop your cadence service.
If you are not the primary administrator on the system then you should follow any policies your admin has in place. They may even do it for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.