![]() ![]() If deluser works as we assume it does, your listing should not show userme. Verify userme is not listed as a member of the group sudo in /etc/group. I'll guess the reason that the deluser command you ran didn't get userme blocked from sudo access is rooted in the same issues addressed in this Q&A from Ubuntu SE. ![]() You also said, "I rechecked to see if I was listed in sudo groups", but you didn't say how you verified that. If I'm following your explanation correctly, you issued the command deluser sudo as the root user. Is that normal behavior for raspberry pi os to still use sudo even with my user removed from the sudo group ? I suppose I'm misunderstanding something about sudo Currently, sudo still works just like before removing my user from the sudo groups with deluser sudo I want to switch to root powers using the su command to do things like installing new software with apt. So, the raspberry pi is asking for passwords, but I'm trying to get rid of sudo I also went into the Desktop Pi settings and selected to prompt for my user password and each bootup, and it does that. I edited the critical line to read ALL=(ALL) NOPASSWD: ALL I researched and discovered I should edit the file /etc/sudoers.d/010_pi-nopasswd to force sudo to ask for a password, and now it does. sudo still worked without prompting for a password. I rechecked to see if I was listed in sudo groups and I wasn't. (I'm trying to tighten security, not disable security) Then I tested by prefixing "sudo" and to my surprise apt downloaded and installed my packages successfully, without even prompting for any password. I tested my new security adjustment by using apt (without "sudo)" to install a package, and as I expected it wouldn't allow me (as regular user) to install the package, just as hoped. I just installed the April 4th 2022 edition of Rasberry Pi OS and added a root password in addition to my user password. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |