nasa-jpl / osr-rover-code

Code that runs on the Open Source Rover
Apache License 2.0
435 stars 149 forks source link

Permission denied to create symbolic links #149

Closed JHPHELAN closed 8 months ago

JHPHELAN commented 3 years ago

In branch foxy-devel https://github.com/nasa-jpl/osr-rover-code/blob/foxy-devel/setup/rover_bringup.md In section 3 Automatic bringup with launch script This command gets permission error: ubuntu@AUDACITY:~/osr_ws/src/osr-rover-code/init_scripts$ ln -s $(pwd)/launch_osr.sh /usr/local/bin/launch_osr.sh ln: failed to create symbolic link '/usr/local/bin/launch_osr.sh': Permission denied possibly because /usr/local/bin is owned by root. Using sudo... allows it. Same with: ln -s $(pwd)/osr_paths.sh /usr/local/bin/osr_paths.sh

Also - in the osr_startup.service command table, the underscore between osr and startup doesn't display.

Achllle commented 3 years ago

The fix should either use sudo or (probably better), move the scripts to ~/bin (which may not exist yet)

Achllle commented 8 months ago

This has been fixed, the command is run with sudo now.