To designate a user as an administrator from the GUI, you can simply open-up that user's properties and select the Account type as the "Administrator" option.
If the user already exists, what effect does selecting this account type have at the system level? (added to sudo group, modification to /etc/passwd or /etc/sudoers…etc)
And how would I accomplish this (designating a user as an "Administrator") from the command line?
Best Answer
For Ubuntu prior to 12.04 assuming the user already exists
For 12.04 and later
Replace
username
with the name of the user.If you check the sudoers file
sudo cat /etc/sudoers
you will see this (from 12.04) or similarThe line
%sudo ALL=(ALL:ALL) ALL
says members of the sudo group have administration privileges. The commands at the beginning of this answer add the user to the sudo or admin group as appropriate for the version of Ubuntu you are using. There is more information here:RootSudo - Community Ubuntu Documentation.