Jump to content

Fix for broken " sudo "


ghostdog

Recommended Posts

Greetings

I dont know about you all but i still did not find an image of Armbian that installs without broken permissions issue.

my box is T95R Pro S912 , 2/8 GB , i have tried every flavour of Armbian 9xxx running kernel 5xxx and tried every " gxm.dtb".

everytime is the same error when i type : sudo , i get this

sudo : /usr/bin/sudo must be owened by uid 0 and have the setuid.............

I did some home work and fixed it this way;

- Ctrl + Alt + F3 , log in as root with the password you entered instead of 1234.

- Open terminal and type:

mount -o remount,rw /

passwd    ( enter a new password to reset the old one )

chown root:root /usr/bin/sudo

chown root:root /usr/lib/sudo/sudoers.so

chown root:root /etc/sudoers

chown root:root /etc/sudoers.d/README

chmod 4755 /usr/bin/sudo

reboot

 

That's it , this should fix the permissions issue and you can login as user and sudo without problems.

if i have missed something plz let me know.

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

Ghostdog, did you ever managed to get rid of this problem?

I bought a new sd card, downloaded a new image...after a month or so - the same problem

It seems that all the permissions are borked, not just sudo....but you first encounter it by doing a 'sudo'.

Thanks

Link to comment
Share on other sites

  • Werner locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines