Ubuntu2204 RStudio server网页登录显示'Error: Unauthorized user.'

检查rstudio.log文件/var/log/rstudio/rstudio-server/rserver.log

  1. 我的问题是:
2024-09-03T08:35:12.885691Z [rserver] WARNING User xxxx could not be authenticated because they did not meet the minimum required user id (1000). The minimum user id is controlled by the auth-minimum-user-id rserver.conf option.; LOGGED FROM: bool rstudio::server::auth::validateUser(const string&, const string&, unsigned int, bool) src/cpp/server/auth/ServerValidateUser.cpp:95
  1. Rstudio官网的介绍中,最小的user id是100,我的在安装过程中不知道怎么回事被改成了1000。而我的user id是900多,所以访问被拒绝了。
  2. 这种情况下,使用sudo vim /etc/rstudio/rserver.conf/etc/rstudio/rserver.conf中添加
auth-minimum-user-id = 100
  1. 然后重启一下
sudo rstudio-server restart
  1. 我的只是用户权限问题中的一种情况,仅供参考。
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容