如何为 CentOS 7 设置 RStudio 服务器身份验证

How to setup RStudio Server authentication for CentOS 7

我按照基本说明在 CentOS 6.3 服务器上安装了 RStudio Server (Open),并且能够使用我的系统用户和密码进行身份验证,没有任何问题。

但是,当我在 CentOS 7.2 服务器上尝试相同(甚至是相同版本的 RStudio 服务器)时,我无法进行身份验证。它只是告诉我用户名和密码无法识别。关于如何解决这个问题有什么建议吗?

useful and exhaustive documentation的深处,我找到了答案!

On RedHat, CentOS and SUSE systems applications without their own PAM profiles are denied access by default. Therefore to ensure that RStudio is running and available after installation a default PAM profile is installed at /etc/pam.d/rstudio

默认的 PAM 配置文件在 CentOS7 上不起作用,尽管它似乎在 CentOS6.3 上起作用。要解决此问题,请按照他们建议的步骤将工作 PAM 配置文件复制到 RStudio 一个:

sudo cp /etc/pam.d/login /etc/pam.d/rstudio

希望这能帮助到这里的其他人!