On RHEL:

You'll download an RPM from their site:

https://posit.co/download/rstudio-server/

After installing the RPM, you can enable and start the server:


systemctl start rstudio-server

systemctl enable rstudio-server


In other environments you might be done.  However, you'll want to enable netID login capability.  This is done by editing /etc/pam.d/rstudio

[root@ws2501 pam.d]# cat rstudio 
#%PAM-1.0
#auth      requisite      pam_succeed_if.so uid >= 500 quiet
#auth      required       pam_unix.so nodelay
#account   required       pam_unix.so

auth       substack     system-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    include      postlogin
-session   optional     pam_ck_connector.so


This is a sample that is known to work on congee.cs.rice.edu.


You will also need to add any users to the rserver group in /etc/group:

[root@ws2501 pam.d]# cat /etc/group | grep rstudio

rstudio-server:x:970:kf57,ll227,aed10 


Lastly, if the server is running a firewall such as nftables, you will need something like:


[root@ws2501 etc]# grep 8787 nftables-rice.conf 

    tcp dport 8787 accept;


In order to access the server from a remote machine.



  • No labels