LikeWise Ubuntu Login (including xRdp)

Adding users to sudoers

We will be editing /etc/sudoers file for this:
sudo gedit /etc/sudoers

Look for the following line:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Add a lines as explained below:

If you have set default domain
username ALL=(ALL) ALL # Allow specific account to sudo
domain^admins ALL=(ALL) # Allow admin group
domain^users ALL=(ALL) ALL # Allow all domain users

if you are not using default domain then you have to include the domain name:
%mydomain\yourusername ALL=(ALL) ALL
%mydomain\domain^admins ALL=(ALL) ALL
%mydomain\domain^users ALL=(ALL) ALL

Add domain username to login screen user list

sudo gedit /etc/gdm/custom.conf
Add the greeter part at the end of the file. Add your domain username to include section and any other you want to exclude.


Reference :

Leave a Reply

Your email address will not be published. Required fields are marked *