Files
blog/_posts/2016-01-09-deny-regular-users-to-have-and-use-privileges.md
2020-03-17 15:51:54 +01:00

1.2 KiB

title, date, url, layout, category
title date url layout category
Deny regular users to have and use privileges 2016-01-09 deny-regular-users-to-have-and-use-privileges post Hacking
I didn't really get this point since I've run for the first time my Pi. If your current user can destroy the system without even typing the root password, what is the meaning of the root account ?

To disable this, connect with root account, and run:
# visudo
As the screenshot above, find the lines which match with your regular account(s), and comment them. This will deny regular user to run commands which need privileges.
#pi ALL=(ALL) NOPASSWD: ALL
I've deleted user from "sudo" group too. If you want:
# gpasswd -d pi sudo