Skip to content

Commit 269e0e6

Browse files
committed
staff->users
1 parent 8e0d57f commit 269e0e6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ USER ${NB_USER}
2929

3030
# When run at build-time, install.r automagically handles any necessary apt-gets
3131
COPY install.r /tmp/install.r
32-
RUN Rscript /tmp/install.r && sudo chgrp -R users /usr/lib/R/site_library
32+
RUN Rscript /tmp/install.r
33+
RUN ls -l /usr/lib/R && sudo chgrp -R users /usr/lib/R/site-library
3334

3435

3536
COPY vscode-extensions.txt /tmp/vscode-extensions.txt

install_r.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ R_HOME=$(R RHOME)
4040
#echo "suppressMessages(bspm::enable())" >> /root/.Rprofile
4141

4242
# packages installed by root / bspm will go in /usr/lib/R/site-library
43-
chown root:staff ${R_HOME}/site-library
43+
chown root:users ${R_HOME}/site-library
4444
chmod g+ws ${R_HOME}/site-library
4545

4646
# to avoid permission clashes, user-installed packages go in /usr/local/lib/R/site-library
4747
chown ${NB_USER}:users /usr/local/lib/R/site-library
48-
usermod -a -G staff ${NB_USER}
48+
usermod -a -G users ${NB_USER}
4949

5050
ln -s /usr/lib/R/site-library/littler/examples/install2.r /usr/local/bin/install2.r
5151

0 commit comments

Comments
 (0)