sol-eng / sys-admin-cheatsheet

Cheat sheet for RStudio Team system administration
https://colorado.rstudio.com/rsc/rstudio-team-sysadmin-cheatsheet/
MIT License
7 stars 2 forks source link

Suggestion: Change `chown` command when copying apps #5

Open emcrisan opened 4 years ago

emcrisan commented 4 years ago

When following the steps in the copying apps exercise: https://colorado.rstudio.com/rsc/pro-admin-training/using-connect-exercise/#section-task-copy-the-example-apps

The command given in the exercise gives an error when I run it:

admin-user@ip-10-8-8-93:/home/jen/pro_admin_training_assets$ sudo chown -R jen:jen /home/jen
chown: invalid group: ‘jen:jen’

In order to get the output shown in the exercise (owned by jen in group root), I had to run this command: sudo chown -R jen /home/jen

If I dropped jen from the group, and ran this command: sudo chown -R jen: /home/jen Then the ownership changed to jen in group rstudio-connect. For example: drwxr-xr-x 2 jen rstudio-connect 4096 Jan 2 12:53 00_app

emcrisan commented 4 years ago

I tried the command from this folder too:

admin-user@ip-10-8-8-93:/usr/share/class/pro_admin_training_assets$ sudo chown -R jen:jen /home/jen
chown: invalid group: ‘jen:jen’
andrie commented 4 years ago

AFAIK, I have already updated the instructions. It should now say:

sudo chown jen: .....

And there should be a drop-down that explains why this works.

(The command chown jen:jen will definitely not work, since jen isn't a valid group.)

https://colorado.rstudio.com/rsc/pro-admin-training/security-rsp-exercise/#section-task-create-user-accounts

andrie commented 4 years ago

image

Closing this issue

emcrisan commented 4 years ago

You did make the change above, but it is the instructions on the copying apps exercise that need to be updated. The screenshot below is from this page: https://colorado.rstudio.com/rsc/pro-admin-training/using-connect-exercise/#section-task-copy-the-example-apps

image