Re: [ros-users] Running commands as SuperUser

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ruben Smits
Date:  
To: ros-users
CC: Alexis Cheng
Subject: Re: [ros-users] Running commands as SuperUser
On Wednesday 02 June 2010 22:28:19 Alexis Cheng wrote:
> Hi,
>
> I have a couple of source files that require super user privilege. Is it
> possible to run commands such as rosrun as super user? I tried sudo rosrun
> ... and it returns with rosrun: command not found. Has anybody ran into
> this issue, and if so how did you get around it? Thanks for your
> attention.


We got around the problem by becoming root using "sudo su", sourcing the
setup.sh file (or any other way to set up the ROS environment for the root
user), and executing rosrun as root.

Ruben


> Regards,
> Alexis Cheng
> Electrical Engineering
> University of British Columbia
>
> ________________________________
> 30 days of prizes: Hotmail makes your day easier! Enter
> now<http://go.microsoft.com/?linkid=9729705>