how can i remove sudo power from my standard user? example: when I install an app using the standard user I enter sudo and it installs.
what i want to happen in my standard account is to remove the sudo power. when i execute sudo nothing will happen. like that and otherwise when I want to sudo I will use root.
If you are confused by my explanation, you can ask in the comment section, thank you.
my security concern is because my pc is also used by others I’m afraid because last time I saw a keylogger.
i did try that but. when i try to sudo in standard user it directed to root accout :). may be i did something wrong thank you for your help sir. i try to reinstalled it again
Your concept is just stup…ahm wrong. Instead of creating account for each user as it should be, you will all share an account and everybody can mess the config, infect the home or just delete your files. And guess what: you still need a root account, so you still have 2 accounts.
Just make another unprivileged account for everybody else, if you insist on going this road. And for schools and hotels there are other kiosk mode containerized solutions.
Or, change your password, and let nobody else near your machine.
If others know how to use sudo, they probably know how to drop to Super User (su) as well. Creating a second restricted account for others and changing the password of your account, is the best way forward.
As far as I know, the root account isn’t even active by default.
This can be set at installation time (set a password for “root”)
You can do things as root/admin - with the help of that (your) user being part of the “wheel” group.
You can set a password for root - and then remove the users from the group “wheel”
so that they cannot gain root permissions by providing their password.