Hello, I'm a linux user for many years, and know that the policy of password-less sudo is a bad security policy, as it makes the machine susceptible to malware.
So, How do I get the standard security that I know that is the correct way to run linux on something?
Re: How do you remove password-less sudo from PI installation
Delete /etc/sudoers.d/010_pi-nopasswd
- DougieLawson
- Posts: 42215
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: How do you remove password-less sudo from PI installation
That will leave you with no user that can run sudo.
Change the contents of 010_pi-nopasswd to
Code: Select all
pi ALL=(ALL) PASSWD: ALL
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: How do you remove password-less sudo from PI installation
you are wrong. look at /etc/sudoers
Pi4-4G RaspiOS 32 BuLlSeYe
Re: How do you remove password-less sudo from PI installation
Do you want to remove just the "passwordless" part of sudo, or remove sudo? Either way you will also need to add a root password, which I suspect you already know.
Re: How do you remove password-less sudo from PI installation
Nope. Sudo asks for the password of the user invoking it not for root's password. A root password is only needed when you have no users capable of running su or sudo.
I'm a volunteer. Take me for granted or abuse my support and I will walk away
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
All advice given is based on my experience. it worked for me, it may not work for you.
Need help? https://github.com/thagrol/Guides
Re: How do you remove password-less sudo from PI installation
Just removing the security flaw: "Passwordless" So it will be just like my other Linux machines I own.
Would be nice if someone's PI image didn't have this security compromise from the beginning, but I have to deal with what I am working with.
These OS on this platform also suck in a different way because there is no grub to toggle kernel versions and OS boot.
Re: How do you remove password-less sudo from PI installation
try ubuntu or manjaro.
Pi4-4G RaspiOS 32 BuLlSeYe
Re: How do you remove password-less sudo from PI installation
.....or Devuan - (Debian without systemd).
- pi-anazazi
- Posts: 1062
- Joined: Fri Feb 13, 2015 9:22 pm
- Location: EU
Re: How do you remove password-less sudo from PI installation
And to add some security, require root password for sudo
https://superuser.com/questions/161593/ ... t-password
...take answer by SRDC as the solution.
https://superuser.com/questions/161593/ ... t-password
...take answer by SRDC as the solution.
Kind regards
anazazi
anazazi