Accidentally changed the owner of binary files from root to icub (username) in server laptop #285
-
Hello everyone, During the work with iCub laptop (server), I ran sudo chown -R / command, which made icub (username) to be the owner of all possible binary files, including sudo. Hence, programs (which need root privileges) cannot be run anymore. Specifically, as a result
When I run the sudo command, I get the following error: The iCub Laptop (server) came with iCub robot with pre-installed binaries set-up to work with robot. Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 34 comments 1 reply
-
can you try logging in as root? root should be able to re-assign correct ownership to files. |
Beta Was this translation helpful? Give feedback.
-
@lornat75 Yes, I've tried, but no success. To log in as a root from a terminal I need to have sudo privileges. However, I cannot run sudo. I also cannot boot into recovery mode. |
Beta Was this translation helpful? Give feedback.
-
Regarding the error with sudo command, it must be owned by root and have the suid bit setted |
Beta Was this translation helpful? Give feedback.
-
@mbrunettini |
Beta Was this translation helpful? Give feedback.
-
can you login as icub? |
Beta Was this translation helpful? Give feedback.
-
did you tried to issue the above command as icub, then? |
Beta Was this translation helpful? Give feedback.
-
Yes, I've tried. Have the following error: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
can you try the following? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
the most clean solution is to reinstall the machine: can you confirm this machine is the server laptop (i.e. the machine from where the pc104 mounts the robot code share)? |
Beta Was this translation helpful? Give feedback.
-
The laptop had arrived with iCub robot and set up to work with the iCub. Also username is |
Beta Was this translation helpful? Give feedback.
-
I have a concern in the following part:
Should I do it as |
Beta Was this translation helpful? Give feedback.
-
icub |
Beta Was this translation helpful? Give feedback.
-
We followed the instruction given and could connect to the robot. We could also run |
Beta Was this translation helpful? Give feedback.
-
It is a different issue, I propose to close this one and to open a new one with a different topic. |
Beta Was this translation helpful? Give feedback.
-
Let me clear one thing: My point is how to synchronize or map those source codes between the pc104 and server laptop? |
Beta Was this translation helpful? Give feedback.
-
Yes, you have to update YARP on the robot |
Beta Was this translation helpful? Give feedback.
-
@barbalberto How shall we do? Do we need to get inside of the pc104 and git pull , then re-build it. |
Beta Was this translation helpful? Give feedback.
-
You have to go inside the pc104
then do the same on ICUB_DIR |
Beta Was this translation helpful? Give feedback.
-
And other folders you have in /usr/local/src/robot like icub-firmware-shared, in the order shown in the page http://wiki.icub.org/wiki/Compilation_on_the_pc104 from section compile yarp onward |
Beta Was this translation helpful? Give feedback.
-
since the issue about the laptop is solved, i close this |
Beta Was this translation helpful? Give feedback.
-
@barbalberto we updated yarp, icub-main and so other folders we mentioned. Now, we cannot run |
Beta Was this translation helpful? Give feedback.
-
In
which flags should be ON? (We're iCubSingpapore01)
|
Beta Was this translation helpful? Give feedback.
-
Ok, you need also to update firmware on the boards. |
Beta Was this translation helpful? Give feedback.
-
iCubSingpapore01 |
Beta Was this translation helpful? Give feedback.
-
I created issue here robotology/icub-tech-support#626 |
Beta Was this translation helpful? Give feedback.
Good, thanks.
Then, instructions are here
Please follow all the steps carefully