Globally Change RStudio home directory

Hello,

We are trying to make it so that when a user logs into RStudio Server their home directory is not "~" by default. We have created a custom directory that has much more space than home and would like all users to have to go to the custom directory by default upon login.

I've looked into pam_mkhomedir and /etc/auto.home, but I don't think neither will do what I'm trying to accomplish. Any ideas on solving this issue?

Thanks
Justplainolemac

On Linux, R uses the HOME environment variable when deciding what directory should be considered the home directory, so I believe in theory you could just change that before the R session is started. As an example, from the command line:

$ HOME=/tmp R --vanilla --slave -e "path.expand('~/')"
[1] "/tmp/"

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.