LinuxQuestions.org
Review your favorite Linux distribution.
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 08-07-2012, 04:32 PM   #1
VicLopezAraiza
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
Hor can I login in UBUNTU with administrative rights


Please tell me what should I do to login in Ubuntu with administrative rights
 
Old 08-07-2012, 04:34 PM   #2
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
I dont think you can log in to an entired session as root, however you can become root if you issue the command sudo -i
in a terminal
Good luck to you!
 
Old 08-07-2012, 05:11 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
For resetting a forgotten password and other similar tasks hold down Left Shift and select the item with "(recovery mode)" after it. For anything else precede the command with sudo, for example:
Code:
sudo apt-get update
If you wish to enable root login it can be done but please see the following page and read it carefully:
https://help.ubuntu.com/community/RootSudo
 
Old 08-07-2012, 06:49 PM   #4
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
The first user you created when you installed Ubuntu is automatically in the 'admin' group. But you can add other users to 'admin' group as well, which makes them administrators with the right to use 'sudo'.

More details here: http://www.psychocats.net/ubuntu/sudo
 
Old 08-07-2012, 06:49 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,329

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
As implied by TroN-0074, Ubuntu gives the first created user full root access rights via the 'sudo' cmd, so just prefix privileged cmds with that.
 
Old 08-07-2012, 07:21 PM   #6
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
Enabling the Root account is rarely necessary. Almost everything you need to do as administrator of an Ubuntu system can be done via sudo or gksudo. If you really need a persistent Root login, the best alternative is to simulate a Root login shell using the following command...

Code:
sudo -i
To enable the Root account (i.e. set a password) use:

Code:
sudo passwd root
Logging in to X as root may cause very serious trouble. If you believe you need a root account to perform a certain action, please consult the official support channels first, to make sure there is not a better alternative.

Straight from the Ubuntu website.
 
Old 08-07-2012, 07:23 PM   #7
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
The OP asked nothing about root user, the question was administrative user. Administrator has a specific meaning in Ubuntu, it means a user who is in the 'admin' group and is therefore authorized to administer the system using 'sudo'. Must we turn this thread into another tired "don't log in as root" debate?
 
Old 08-07-2012, 07:45 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by snowpine View Post
The OP asked nothing about root user, the question was administrative user. Administrator has a specific meaning in Ubuntu, it means a user who is in the 'admin' group and is therefore authorized to administer the system using 'sudo'. Must we turn this thread into another tired "don't log in as root" debate?
Indeed, you are right.
It's not our fault though that Canonical decided to go their own way, thus confusing Linux users.
I think I'll stay away from Ubuntu threads in future. Sorry I know that's negative and OT but it really is turning into Ubuntu OS now.
 
Old 08-07-2012, 07:55 PM   #9
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 424

Rep: Reputation: 83
Quote:
Originally Posted by snowpine View Post
The OP asked nothing about root user, the question was administrative user. Administrator has a specific meaning in Ubuntu, it means a user who is in the 'admin' group and is therefore authorized to administer the system using 'sudo'. Must we turn this thread into another tired "don't log in as root" debate?
Since the first user IS administrative, and he mentioned a LOGIN, it could be assumed he MEANS root, and just used "administrative" because he's a crossover from Windows, since he can already log in as an administrative user.
 
Old 08-07-2012, 08:00 PM   #10
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411Reputation: 1411
Quote:
Originally Posted by 273 View Post
Indeed, you are right.
It's not our fault though that Canonical decided to go their own way, thus confusing Linux users.
I think I'll stay away from Ubuntu threads in future. Sorry I know that's negative and OT but it really is turning into Ubuntu OS now.
Ubuntu calls this group 'admin', Debian calls it 'sudo', and Fedora calls it 'wheel'. Since there is no standard terminology, someone is bound to be confused no matter what.
 
  


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
Can't unlock some administrative tasks in Ubuntu 8.04 jonette20 Ubuntu 6 08-22-2009 12:21 PM
Need to make local user account with administrative rights wilmapayne Other *NIX 2 04-22-2009 09:24 AM
Hor. scrolling text with perl or php @ngelot Programming 2 11-03-2004 09:06 AM
rh7.3 hor/vert sync ? abby_normal Linux - Software 1 10-26-2003 10:40 PM
SSH logins and limiting remote users login rights. redgore Linux - Networking 2 07-16-2002 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:30 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
Open Source Consulting | Domain Registration