Page 1 of 1

Do we have a way to 'sidestep' sudo password requirement?

Posted: Wed Apr 27, 2022 10:47 pm
by mikewalsh

Evening, gang.

Research doesn't show anything useful for this, given that 'sudo' password requirement is almost universal across the Linux spectrum.

I'm having a play around with Hard Disk Sentinel - https://www.hdsentinel.com/ - or at least, trying to..! There's two packages; a CLI one, or the GUI version. The CLI one fires up without issue.....but the GUI one immediately pops-up a small window demanding a "sudo" password, which stopped me dead in my tracks. 'Cos Puppy doesn't use sudo, does she?? :shock: :roll:

Is there a recognised way to sidestep this requirement, when attempting to run as root in Puppy? Unfortunately, these are not scripts, they're compiled binaries, so I recognise that I'm possibly barking up the wrong tree, here. Still; nothing ventured, nothing gained....

Any advice, guys? Thoughts? Would be appreciated.......as always. :thumbup:

Mike. ;)


Re: Do we have a way to 'sidestep' sudo password requirement?

Posted: Wed Apr 27, 2022 11:09 pm
by Grey
mikewalsh wrote: Wed Apr 27, 2022 10:47 pm

Any advice, guys? Thoughts?

Hello, Mike. I tried to run HDSentinel_GUI, without the installation script. Yes, everything is as you described :)

I was already preparing to make changes in the hex editor to remove this... But everything turned out to be simpler. Try root ;)
The program shows all my 5 disks. In general, not bad.


Re: Do we have a way to 'sidestep' sudo password requirement?

Posted: Wed Apr 27, 2022 11:16 pm
by Grey
mikewalsh wrote: Wed Apr 27, 2022 10:47 pm

Cos Puppy doesn't use sudo, does she??

She... I didn't understand right away. So she's a system, not a Puppy :)


Re: Do we have a way to 'sidestep' sudo password requirement?

Posted: Thu Apr 28, 2022 1:44 am
by mikewalsh

@Grey :-

Heh. Oh, that's simple enough. Never occurred to me to try "root", did it? :roll:

(Right from day one, I've always thought of my Puppies as '"she". Perhaps we Brits have a tendency to assign genders to inanimate objects; I kinda got used to it with the old man being a keen yachtsman when he was still alive.....boats are ALWAYS referred to in the feminine. Don't ask me why, it's just tradition!)

Mike. ;)


Re: Do we have a way to 'sidestep' sudo password requirement?

Posted: Thu Apr 28, 2022 3:26 am
by williams2

Usually, if your are installing something you can install it running as user root not as user spot

spot usually is not configured to be able to use sudo.
spot usually can not use su or sudo.

sudo asks for the user's password.
sudo never asks for the user root's password.

spot by default has no password set. You can set spot's password like this:
passwd spot

But spot still can not use sudo
unless you edit /etc/sudo.conf
and set the suid bit for busybox
which is not good to do.