linux - Sudo not working - "sudo: effective uid is not 0, is sudo installed setuid root?" -
i have been trying allow access normal user of ec2 amazon server ('ec2-user') library.
i did: "sudo chown -r ec2-user /usr" realize had been fatal mistake. worked, sudo gone. if try use sudo get: "sudo: effective uid not 0, sudo installed setuid root?"
i tried "chmod u+s /usr" suggested in answer. not solve issue.
i guess there basic missing. forgive newb ignorance.
the suid bit of permissions sudo changes effective user owner of sudo command file, changed ec2-user. need give ownership of sudo command root.
Comments
Post a Comment