Conversation
|
There was a problem hiding this comment.
There's no reason to let the user know that there is another option that is not devel.
In this repository, all users should be under devel as Camilo defined.
The other option should not exist for our public users.
If you want to keep it, I prefer you keep it silent by not letting the user know the option exists (thus only our developers will know).
|
There was a problem hiding this comment.
Looks good.
To test it, you can create that folder on the robot (devel)
Then, you can try to run it.
After you see all the expected prints from you script, ssh to the robot and run this command inside it:
ls -ld ~/dev_workspaces/devel
The expected output should be drwxrwxr-x 5 gary gary 4096 <date> /home/gary/dev_workspaces/devel
The most important there is the gary gary, for owner/group permissions definition
|
I did it and i get the expected output with gary gary. |
Sh Script for permission denied issue.
There were minor changes, because after I ran the script on my computer I saw that it couldn't log in because a password was required in SSH.
This has been fixed and now after running it I enter the password for Gary and it works.
Stages:
SSHs into GARYXXX_VPN
Goes into ~/dev_workspaces
Changes permission of roy/ to gary:gary
Asks for gary’s password via sudo
Prints success message