Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
/usr/bin/sudo and setid missing #794
I just burned the latest img for Raspberry Pi available on the site (it boots as v144) and noticed that on 1st boot sudo fails on "sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set".
BTW: wont it be possible to include a unprivileged user preconfigured (ie 'pi' as in raspbian but with password 'dietpi' for easier onboarding on people migrating from raspbian). I know about the discussion at http://dietpi.com/phpbb/viewtopic.php?f=9&t=22 but that thread is locked (I support the enhancement BTW).
Strange, seems this isn't the 1st report:
We actually use the official RPi Jessie Lite image as a base, then prep it for DietPi. As far as I know, we make no changes to
I've been thinking of creating a user
This was referenced
Mar 13, 2017
I installed Dietpi V6.8 on odroid XU4 and this bug still exists. :/
I used auto-install to create the system.
dietpi@Terminus:~$ ls -la /usr/bin/ | grep sudo
Thanks for the report
This 'should' be applied to our images by default, however, please try running the following command:
Should result in:
If this resolves, we'll run this as a patch for v6.9.
sorry for late repsonse. It doesn't work. I get a "not allowed"
`dietpi@Terminus:~$ sudo dietpi-update
dietpi@Terminus:~$ chmod 4755 $(which sudo)
dietpi@Terminus:~$ ls -lha $(which sudo)
dietpi@Terminus:~$ sudo dietpi-software