ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

catkin permission

asked 2014-07-09 13:15:30 -0600

Pototo gravatar image

Hello,

I installed ROS as a root, and now I am getting this error when I try to run catking_init_workspace:

Could neither symlink nor copy file "/opt/ros/hydro/share/catkin/cmake/toplevel.cmake" to "/home/user/worspace/src/CMakeLists.txt":
- [Errno 13] Permission denied
- [Errno 13] Permission denied: '/home/user/worspace/src/CMakeLists.txt'

How can I get rid of this issue?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-09 14:46:50 -0600

allenh1 gravatar image

It is generally not a good idea to install ROS as root... Even when built from source, a home directory is usually used. Because you installed as root, you have a problem here with permissions... Unless you want to sudo !! for the rest of your time using ROS, I'd say it's a good time to reinstall...

regards,

-Hunter A.

edit flag offensive delete link more

Comments

A reinstall is not necessary, but you should consider removing the whole directory tree or chown -R user /home/user/workspace and or rm -rf /home/user/workspace and any other place you have root owned files in your user directory.

tfoote gravatar image tfoote  ( 2014-07-09 19:00:31 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-09 13:15:30 -0600

Seen: 4,943 times

Last updated: Jul 09 '14