Ubuntu – The different between an Normal and Admin account

14.04administratorSecurityusers

What is the different between an Normal user account and the Admin account in Ubuntu?

You must always enter your password if you want do something. Can you give a Normal account "limitations" to do not install or remove anything or to not open any program? Can you also "hide/deactive" the terminal and console for a normal user?

Best Answer

User accounts are not allowed to use the sudo command, meaning there is no way for them to access any root privileges, meaning no package installations or filesystem tampering, etc.

To block a user from using a program, a simple way is to create a whitelist for that program. To do this, use the following commands in the terminal:

sudo addgroup GROUP
sudo chmod 750 /usr/bin/PROGRAM
sudo chown root:GROUP /usr/bin/PROGRAM
adduser alice GROUP
adduser bob GROUP

Where GROUP is the name you want for the whitelist for the program, PROGRAM is the name of the program, and "alice" and "bob" are replaced with the actual users on your system you want to allow access. Any users not in the group will be denied access.