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

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
mikewalsh
Moderator
Posts: 6154
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 792 times
Been thanked: 1979 times

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

Post 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. ;)

User avatar
Grey
Posts: 2023
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

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

Post 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.

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
Grey
Posts: 2023
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

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

Post 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 :)

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
mikewalsh
Moderator
Posts: 6154
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 792 times
Been thanked: 1979 times

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

Post 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. ;)

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

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

Post 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.

Post Reply

Return to “Users”