Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 14504  / 1 Year ago, thu, april 13, 2023, 2:57:27

I get the file parmission on my folder, so I run the following command



sudo chmod 777 -R /*


and get some error line.
then I try to login as root user by the following command



sudo su


get this error like as



supravat@supravat:~$ sudo su
sudo: must be setuid root


Then I research regarding this error. and followed some source but error is still present.
http://www.linuxquestions.org/questions/linux-software-2/sudo-must-be-setuid-root-854117/



When I run following commend as like



chown root:root /usr/bin/sudo


Get this mesasage..



chown: changing ownership of '/usr/bin/sudo' : read-only file system


Please help me.


More From » 12.04

 Answers
5

The command you run: sudo chmod 777 -R /* or sudo chmod 777 -R / changes the permission of ALL file in your system to 777: read, write and executable for everyone. That's a major security risk. You opened your system for everyone. NEVER run this command. Everyone who gives you that command wants your system to be insecure. It's peanuts to get root access on such a system.



I recommend you to reinstall your whole system. You could try to set the permissions back to the original ones, but you can never be sure. I see only one option: Reinstallation.


[#27353] Friday, April 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
etzelmortg

Total Points: 430
Total Questions: 105
Total Answers: 106

Location: Suriname
Member since Sun, Jun 13, 2021
3 Years ago
;