简体   繁体   English

如何更改权限:EC2 AWS 上的权限被拒绝 Shiny 应用程序

[英]How to Change Permissions: Permission Denied Shiny app on EC2 AWS

I am trying to host a shiny app on an AWS EC2 for the first time.我第一次尝试在 AWS EC2 上托管 shiny 应用程序。 I have been following this [tutorial] ( https://www.charlesbordet.com/en/guide-shiny-aws/#3-how-to-configure-shiny-server ).我一直在关注这个 [教程] ( https://www.charlesbordet.com/en/guide-shiny-aws/#3-how-to-configure-shiny-server )。

I adjusted my sudo nano /etc/shiny-server/shiny-server.conf with sanitize_errors false;我用sanitize_errors false;调整了我的sudo nano /etc/shiny-server/shiny-server.conf so the errors display at http://18.144.34.215:3838/ .所以错误显示在http://18.144.34.215:3838/ It seems I do not have the correct permission allocated to that folder from the shiny-server.看来我没有从闪亮服务器分配给该文件夹的正确权限。

This is my first attempt at hosting a shiny app on EC2 and a bit lost from other posts I have found searching.这是我第一次尝试在 EC2 上托管一个 shiny 应用程序,我发现搜索的其他帖子有点丢失。 What would be the correct commands to give permission to this folder?授予此文件夹权限的正确命令是什么?

Also, please let me know what info you need from me in order to understand this error better.另外,请让我知道您需要我提供哪些信息,以便更好地理解此错误。

Here are my folder permission for 'RIBBiTR_DataRepository'这是我对“RIBBiTR_DataRepository”的文件夹权限

-rw-rwSr-- 1 ubuntu ubuntu 35149 Feb  1 21:32 LICENSE
-rw-rwSr-- 1 ubuntu ubuntu    10 Feb  1 21:32 README.md
drwxrwsrwx 5 ubuntu ubuntu  4096 Feb  1 21:38 RIBBiTR_DataRepository
-rw-rwSr-- 1 ubuntu ubuntu   205 Feb  1 21:32 db_forms.Rproj
drwxrwsr-x 2 ubuntu ubuntu  4096 Feb  1 21:32 misc

And to add, when I try to view the logs I receive a permission denied并添加,当我尝试查看日志时,我收到了被拒绝的权限

ubuntu@ip-172-30-1-21:/var/log/shiny-server$ sudo tail RIBBiTR_DataRepository-shiny-20230201-215702-44689.log
su: ignoring --preserve-environment, it's mutually exclusive with --login
-bash: line 1: cd: /srv/shiny-server/db_forms/RIBBiTR_DataRepository: Permission denied

The issue was in my shiny-server.conf file.问题出在我的 shiny-server.conf 文件中。 I updated the file with a user group, run_as ubuntu;我用用户组run_as ubuntu;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM