Give a user permissions to start, stop or restart shiny-server

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












1















I need to give permission to a user to start, stop and restart Rstudio's shiny-server.



Right now, I have been managing the service upon this user's request with sudo service restart shiny-server, but now I want the user to manage this.



My first approach to this problem is to edit the /etc/sudoers. But I realized I have no idea what the full path of shiny-server is, so I have no idea what to put in the /etc/sudoers file. I would have hoped to find it in /etc/init.d/, but that isn't the case.



Does anyone have experience with this or a work-around?



I'm currently running Ubuntu 16.04.5 LTS (Xenial Xerus) on this server.



The version of R is 3.4.1 and it was compiled from source.










share|improve this question






















  • Did my solution work for you? If you're getting an error then can your run the command which service and tell me the result. I can then update my answer to make sure it works.

    – Crypteya
    Jan 30 at 1:35







  • 1





    This solution does work and my user is happy now! Thank you for your help.

    – klb808
    Jan 30 at 22:34















1















I need to give permission to a user to start, stop and restart Rstudio's shiny-server.



Right now, I have been managing the service upon this user's request with sudo service restart shiny-server, but now I want the user to manage this.



My first approach to this problem is to edit the /etc/sudoers. But I realized I have no idea what the full path of shiny-server is, so I have no idea what to put in the /etc/sudoers file. I would have hoped to find it in /etc/init.d/, but that isn't the case.



Does anyone have experience with this or a work-around?



I'm currently running Ubuntu 16.04.5 LTS (Xenial Xerus) on this server.



The version of R is 3.4.1 and it was compiled from source.










share|improve this question






















  • Did my solution work for you? If you're getting an error then can your run the command which service and tell me the result. I can then update my answer to make sure it works.

    – Crypteya
    Jan 30 at 1:35







  • 1





    This solution does work and my user is happy now! Thank you for your help.

    – klb808
    Jan 30 at 22:34













1












1








1








I need to give permission to a user to start, stop and restart Rstudio's shiny-server.



Right now, I have been managing the service upon this user's request with sudo service restart shiny-server, but now I want the user to manage this.



My first approach to this problem is to edit the /etc/sudoers. But I realized I have no idea what the full path of shiny-server is, so I have no idea what to put in the /etc/sudoers file. I would have hoped to find it in /etc/init.d/, but that isn't the case.



Does anyone have experience with this or a work-around?



I'm currently running Ubuntu 16.04.5 LTS (Xenial Xerus) on this server.



The version of R is 3.4.1 and it was compiled from source.










share|improve this question














I need to give permission to a user to start, stop and restart Rstudio's shiny-server.



Right now, I have been managing the service upon this user's request with sudo service restart shiny-server, but now I want the user to manage this.



My first approach to this problem is to edit the /etc/sudoers. But I realized I have no idea what the full path of shiny-server is, so I have no idea what to put in the /etc/sudoers file. I would have hoped to find it in /etc/init.d/, but that isn't the case.



Does anyone have experience with this or a work-around?



I'm currently running Ubuntu 16.04.5 LTS (Xenial Xerus) on this server.



The version of R is 3.4.1 and it was compiled from source.







permissions sudo r rstudio






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 24 at 23:32









klb808klb808

154




154












  • Did my solution work for you? If you're getting an error then can your run the command which service and tell me the result. I can then update my answer to make sure it works.

    – Crypteya
    Jan 30 at 1:35







  • 1





    This solution does work and my user is happy now! Thank you for your help.

    – klb808
    Jan 30 at 22:34

















  • Did my solution work for you? If you're getting an error then can your run the command which service and tell me the result. I can then update my answer to make sure it works.

    – Crypteya
    Jan 30 at 1:35







  • 1





    This solution does work and my user is happy now! Thank you for your help.

    – klb808
    Jan 30 at 22:34
















Did my solution work for you? If you're getting an error then can your run the command which service and tell me the result. I can then update my answer to make sure it works.

– Crypteya
Jan 30 at 1:35






Did my solution work for you? If you're getting an error then can your run the command which service and tell me the result. I can then update my answer to make sure it works.

– Crypteya
Jan 30 at 1:35





1




1





This solution does work and my user is happy now! Thank you for your help.

– klb808
Jan 30 at 22:34





This solution does work and my user is happy now! Thank you for your help.

– klb808
Jan 30 at 22:34










1 Answer
1






active

oldest

votes


















1














You probably don't need the filepath for shiny-server.



You should be able to give the user the required permissions by adding the following line to your /etc/sudoers file:



username ALL=(root) service restart shiny-server, service stop shiny-server, service start shiny-server


After adding that line, the other user should be able to run sudo service restart shiny-server (as well as start/stop. If you're intent on finding the init script locations, the normal locations to look are:



/etc/init
/etc/init.d
/etc/init/rc-sysinit.conf
/etc/default


(found via this question)






share|improve this answer

























  • You would need the path for service to be listed , eg /sbin/service.

    – Stephen Harris
    Jan 25 at 2:45










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496576%2fgive-a-user-permissions-to-start-stop-or-restart-shiny-server%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You probably don't need the filepath for shiny-server.



You should be able to give the user the required permissions by adding the following line to your /etc/sudoers file:



username ALL=(root) service restart shiny-server, service stop shiny-server, service start shiny-server


After adding that line, the other user should be able to run sudo service restart shiny-server (as well as start/stop. If you're intent on finding the init script locations, the normal locations to look are:



/etc/init
/etc/init.d
/etc/init/rc-sysinit.conf
/etc/default


(found via this question)






share|improve this answer

























  • You would need the path for service to be listed , eg /sbin/service.

    – Stephen Harris
    Jan 25 at 2:45















1














You probably don't need the filepath for shiny-server.



You should be able to give the user the required permissions by adding the following line to your /etc/sudoers file:



username ALL=(root) service restart shiny-server, service stop shiny-server, service start shiny-server


After adding that line, the other user should be able to run sudo service restart shiny-server (as well as start/stop. If you're intent on finding the init script locations, the normal locations to look are:



/etc/init
/etc/init.d
/etc/init/rc-sysinit.conf
/etc/default


(found via this question)






share|improve this answer

























  • You would need the path for service to be listed , eg /sbin/service.

    – Stephen Harris
    Jan 25 at 2:45













1












1








1







You probably don't need the filepath for shiny-server.



You should be able to give the user the required permissions by adding the following line to your /etc/sudoers file:



username ALL=(root) service restart shiny-server, service stop shiny-server, service start shiny-server


After adding that line, the other user should be able to run sudo service restart shiny-server (as well as start/stop. If you're intent on finding the init script locations, the normal locations to look are:



/etc/init
/etc/init.d
/etc/init/rc-sysinit.conf
/etc/default


(found via this question)






share|improve this answer















You probably don't need the filepath for shiny-server.



You should be able to give the user the required permissions by adding the following line to your /etc/sudoers file:



username ALL=(root) service restart shiny-server, service stop shiny-server, service start shiny-server


After adding that line, the other user should be able to run sudo service restart shiny-server (as well as start/stop. If you're intent on finding the init script locations, the normal locations to look are:



/etc/init
/etc/init.d
/etc/init/rc-sysinit.conf
/etc/default


(found via this question)







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 25 at 0:31

























answered Jan 24 at 23:53









CrypteyaCrypteya

30616




30616












  • You would need the path for service to be listed , eg /sbin/service.

    – Stephen Harris
    Jan 25 at 2:45

















  • You would need the path for service to be listed , eg /sbin/service.

    – Stephen Harris
    Jan 25 at 2:45
















You would need the path for service to be listed , eg /sbin/service.

– Stephen Harris
Jan 25 at 2:45





You would need the path for service to be listed , eg /sbin/service.

– Stephen Harris
Jan 25 at 2:45

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496576%2fgive-a-user-permissions-to-start-stop-or-restart-shiny-server%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?