Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-12-2013, 09:49 PM   #1
LQ Newbie
Registered: Apr 2013
Posts: 1

Rep: Reputation: Disabled
admin privileges

how do i add myself as a user with admin. privileges? i have already added myself as a user but cant do much as i am not the superuser... the previous owner of a pc i acquired w ubuntu left their user account active!! what can i do?
Old 09-12-2013, 09:57 PM   #2
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

Rep: Reputation: Disabled
Welcome to LQ!
1 members found this post helpful.
Old 09-13-2013, 02:01 AM   #3
Registered: Mar 2013
Posts: 622

Rep: Reputation: 136Reputation: 136
root privileges in Linux is not same as window's admin privileges.

If you are operating whole system as a root on terminal, you have to be careful expert because it does not ask to verify your command.
Suppose If you remove any directory on terminal using rm -r command, it does not ask to verify, it just completes the process according to your instruction.

You can enable root privilegs on your linux system easily, google is your friend but be careful before being root.

I think you should use sudo with your commands on your user account if you want to use root privileges.

That would be good for you.
Old 09-13-2013, 02:41 AM   #4
LQ Guru
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
One way is to edit the /etc/sudoers file and add your own username thusly:
# User privilege specification
root    ALL=(ALL:ALL) ALL
<your username>  ALL=(ALL:ALL) ALL
Old 09-13-2013, 02:57 AM   #5
Senior Member
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
You have to 'get root'
then add the group "sudo" to yourself

usermod -a -G sudo <yourusername>
while you are at it, add the group "adm", this will allow you to read logs without getting root.

ref /etc/sudoers
it is best to edit that with, as root
that 'editor' will check the file before committing it.
If you 'mess up' /etc/sudoers on a system that doesn’t have a standard root account you can lock yourself out of root.

Alternatively, use the GUI "Users and groups" ( found in settings ) and change the account type from standard to administrator
You will either need root password, or use the already privileged account.
Since Ubuntu doesn’t setup a root account by default, the latter is the way to go.

Last edited by Firerat; 09-13-2013 at 02:58 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Users in Domain Admin group (512) don't have admin rights on windows machine nandon Linux - Networking 2 01-21-2013 08:24 AM
Samba PDC + new windows 7 machines admin privileges not working. Robddog Linux - Newbie 2 12-19-2010 11:26 PM
How do I escalate my admin privileges to Root using Ubuntu Desktop hamarsha Linux - Newbie 4 03-02-2009 05:04 PM
Giving a user Admin Privileges wildcat22 Ubuntu 4 08-07-2008 08:12 AM
Adding users to Kubuntu: need admin privileges badbunny Ubuntu 3 03-16-2006 01:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration