Issues expanding $PATH env variable

Hi,

I dont understand how RSTudio Server (Free) sets/examines the $PATH variable for the user...

When using SSH, the default $PATH is
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:
. Compared to the same users RStudio Server Terminal:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/lib/rstudio-server/bin/quarto/bin:/usr/lib/rstudio-server/bin/postback:/usr/bin
. Its different. Rstudio seems to inject some paths as well.

I stumbled upon this by adding a path to /etc/environment. It gets applied when coming via SSH but not when using Rstudio.
Also, altering $PATH via users .Renviron doesnt work at all.

How can I globally add a path to all users $PATH within Rstudio Server?

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.