I have been using a Raspberry Pi for a few weeks and put a lot of hours into configuring everything for my university project.
I wanted to install Samba and have everything as a network folder. I
used sudo chown -R pi:pi /
.
Now my sudo is broken and prints sudo: effective uid is not 0, is
sudo installed setuid root?
every time I run it (for instance, sudo nano
).
Can this be repaired? Please help me so I do not have to reinstall EVERYTHING. I cannot even remember what I did in the past weeks... so much work.
/
in a command, and for any command with with root privileges (sudo
) . How did you get the idea to do that?/etc
and reinstall from scratch. be more careful withchown
(and other commands/options that work recursively from the/
directory) in future.