检查rstudio的.log文件/var/log/rstudio/rstudio-server/rserver.log
- 我的问题是:
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
- Rstudio官网的介绍中,最小的
user id是100,我的在安装过程中不知道怎么回事被改成了1000。而我的user id是900多,所以访问被拒绝了。
- 这种情况下,使用
sudo vim /etc/rstudio/rserver.conf在/etc/rstudio/rserver.conf中添加
auth-minimum-user-id = 100
- 然后重启一下
sudo rstudio-server restart
- 我的只是用户权限问题中的一种情况,仅供参考。