2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
You may have changed the permissions on "/usr/bin/sudo".
To correct the problem, access the site as the root user and execute the following command.
However, a password must be set for the root user in advance.
If it is not set up, this method cannot be used.
su
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
For other methods, please refer to the following documents.
https://repost.aws/knowledge-center/ec2-sudo-commands
0
I couldn't be a root user by using the "su" command because I didn't have a root password, but instead I used this command to become a root user:
systemd-run --shell
and after that:
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
My problem is solved.
répondu il y a 9 mois
Contenus pertinents
- demandé il y a 5 mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans