hippy wrote: ↑
Wed Apr 14, 2021 6:59 pm
thagrol wrote: ↑
Tue Apr 13, 2021 7:18 pm
hippy wrote: ↑
Tue Apr 13, 2021 4:25 pm
I appreciate there are some edge cases where things might fail, the check won't be perfect, but it would catch most cases, let the user know they have to say 'please' when they have forgotten.
does not mean please. Many folks appear to interpret as such though and that belief is going to cause them grief. Maybe not today. Maybe not tomorrow, but soon, and for the rest of their life.
On a single-user personal home computer system, as I would expect most Pi's are used
Speaking personally, I wouldn't bet on that. I suspect mroe are in educational and industrial use. In neither case would you want the average user to have root/sudo access.
, 'sudo' so often gets in the way of what the owner has chosen to do it's not hard to see why it gets taken as a "please".
It's not sudo
getting in the way, it's the OS. sudo
is a way for "normal" users to bypass OS restrictions in a controlled manner. That RPiOS doesn't use any of those controls doesn't make sudo
My gut tells me that some (many?) of the folks who complain about sudo
are coming from a one user per computer OS like Windows (how many people actually have more than one user account on their PC?), Android, iOS and most home computers of the 80s and 90s.
I also feel they misunderstand what the actual restriction is.
Here's a simply analogy that I hope isn't too far off the mark:
You're visiting aa friend
You try the door. It's locked.
equivalent: asking your friend for their door key.
It's not the key (sudo
) that's stopping you, it's the lock.
I don't think I can recall a time where 'sudo' has saved my bacon, but I endlessly need to use it to do what I want to do.
I can think of many where doing something in the wrong directory has been prevented by by not using sudo
. Simple things like rm *
Developing a habit of repeating a command that fails with a prefix of sudo
is going to get you into trouble. If you're using the Pi as a learning tool with the intention of getting a job in IT it's not one to develop.
If you really find sudo
to be that much of an obstacle, login as root rather than as pi. I wouldn't recommend doing so but it does remove the perceived sudo
is like a hammer. When you have one every problem looks like a nail.