闪亮的服务器用户/用户组 [英] Shiny Server User/UserGroup

查看:34
本文介绍了闪亮的服务器用户/用户组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请建议一种将用户(如我自己)添加到在 Ubuntu 上运行的 Shiny Server 的干净(er)方法.我找到了这个链接:设置提高闪亮的用户权限,但想了解更多有关此的建议.而且我不想托管 RStudio 服务器,只想托管 Shiny 服务器.我也可以在同一台机器上运行 Tomcat 和 Shiny 服务器吗?

Please suggest a clean(er) way of adding a user (like myself) to Shiny Server running on Ubuntu. I found this link: Setting up shiny User permissions but would like more advice on this. And I don't want to host RStudio server, just want to host Shiny server. Also can I run Tomcat along with Shiny server on the same machine?

推荐答案

我想您可能误解了该链接的意思.您不是为 Shiny 服务器设置不同的用户,而是在您的计算机上设置用户,并以跟踪您在计算机上创建的文件的权限的方式管理它们.重要的是确保您计算机上的闪亮"用户(将是托管闪亮服务器应用程序的用户,除非您修改默认设置)具有访问运行这些应用程序时所需文件的正确权限.

I think you may be misunderstanding what that link is saying. You're not setting up different users for the Shiny server, you're setting up users on your computer, and managing them in such a way that you keep track of permissions for files you create on the computer. The important thing is to make sure the "shiny" user on your computer (which will be the one hosting your shiny server apps, unless you modify the default settings) has the correct permissions to access the files it will need when running those apps.

当您运行 Shiny 应用程序时,您本身不会以用户身份登录,而是闪亮"用户将为您托管计算,并通过您的浏览器界面向您提供任何输出.

When you run a Shiny app, you won't be logged in as a user per se, rather the "shiny" user will host the computation for you, and deliver any output to you through your browser interface.

据我所知,除非您使用的是 Shiny Server Pro,否则您将无法在使用应用程序时指定不同的用户(这与会话"不同,这是另一个主题).

To my knowledge, unless you're using Shiny Server Pro, you won't have the ability to specify different users when using the apps (this is different to a "session", which is another topic).

当您创建一个闪亮的应用程序并安装它(通过将其移动到/srv/shiny-server"文件夹)时,您需要确保您计算机上的闪亮"用户对该应用程序具有读取权限至少文件.如果您的应用程序涉及从您的计算机读取数据文件,请确保闪亮"用户也对这些文件具有读取权限.如果您的应用涉及写入我们计算机上的文件,请确保闪亮"用户也拥有对这些文件的写入权限.

When you create a shiny app, and install it (by moving it to the "/srv/shiny-server" folder), you'll need to make sure the user "shiny" on your computer has read access to that file at the very least. If your app involves reading data files from your computer, make sure the "shiny" user has read access to those too. If your app involves writing to files on our computer, make sure the "shiny" user also has write permission for those files.

这篇关于闪亮的服务器用户/用户组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆