LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-12-2013, 08:49 PM   #1
baussy52
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, 08:57 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,245
Blog Entries: 11

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
Welcome to LQ!
http://www.psychocats.net/ubuntu/resetpassword
 
1 members found this post helpful.
Old 09-13-2013, 01:01 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 619

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, 01:41 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
One way is to edit the /etc/sudoers file and add your own username thusly:
Code:
# User privilege specification
root    ALL=(ALL:ALL) ALL
<your username>  ALL=(ALL:ALL) ALL
jdk
 
Old 09-13-2013, 01:57 AM   #5
Firerat
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

Code:
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
Code:
visudo
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 01:58 AM.
 
  


Reply


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 07:24 AM
Samba PDC + new windows 7 machines admin privileges not working. Robddog Linux - Newbie 2 12-19-2010 10:26 PM
How do I escalate my admin privileges to Root using Ubuntu Desktop hamarsha Linux - Newbie 4 03-02-2009 04:04 PM
Giving a user Admin Privileges wildcat22 Ubuntu 4 08-07-2008 07:12 AM
Adding users to Kubuntu: need admin privileges badbunny Ubuntu 3 03-16-2006 12:35 PM


All times are GMT -5. The time now is 11:50 PM.

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