LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-18-2008, 07:24 PM   #1
odyssey84
Member
 
Registered: Dec 2004
Posts: 50

Rep: Reputation: 15
Root login not allowed


Greetings,

I just installed Ubuntu (forget the version) and set up a root password. Tried to log in from where I use my normal ID and received the message: "System administrator not allowed to log in from this screen."

Any ways around this? I need to make a few changes to my sources.list and can't do so as far as I can tell.

Thanks,

Scott
 
Old 02-18-2008, 07:28 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Quote:
Originally Posted by odyssey84 View Post
Greetings,

I just installed Ubuntu (forget the version) and set up a root password. Tried to log in from where I use my normal ID and received the message: "System administrator not allowed to log in from this screen."

Any ways around this? I need to make a few changes to my sources.list and can't do so as far as I can tell.
It's really a good idea. root should never log in as a regular user.

to do anything rooty in ubuntu, you have 2 methods:

1. sudo
2. su

i.e.

Code:
sudo nano -w /etc/apt/sources.list
<enter your password>
-or-

Code:
su
<enter root's password>
nano -w /etc/apt/sources.list
An even better way is to use synaptic - System (the pulldown menu next to "places" and "application" - I forget what it's called in Ubuntu) > Administration > Synaptic Package Manager
... and then edit the repositories from there
 
Old 02-18-2008, 07:29 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Aside from the security issues related to logging in as root (much safer to use sudo to do things with root autority), Ubuntu, by default dosn't create a root login per se. There is a config to change somewhere to allow root login, but I don't remember where.

Ubuntu allows you to login as user, then use sudo to do root maintenance.
 
Old 02-18-2008, 07:40 PM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
You 'sudo passwd root' and then you can 'su -' or login as root from the console. If you must for some reason log in as root over ssh then you will have to edit /etc/ssh/sshd_config to allow root login, I just don't recommend it
 
Old 02-19-2008, 05:26 AM   #5
lycan
Member
 
Registered: Jul 2007
Location: Kolkata, INDIA
Distribution: Debian Lenny
Posts: 51

Rep: Reputation: 15
System > Administration > Login Window

Under "Security" tab check the box beside the line "Allow local system administrator login"
 
Old 02-19-2008, 05:56 AM   #6
ninj4fly
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
Where root can login from is specified in /etc/securetty. Never have used ubuntu, but such file should exist as in Debian and RedHat. In addition as it was mentioned earlier if you want to specify login through ssh, you should configure it in sshd_config. For example, if you try to login through the serial port console, you should add "ttyS0" to /etc/securetty.
 
  


Reply



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
root login not allowed palmoswince Linux - Newbie 8 05-12-2008 09:22 AM
Root Login Not Allowed gjpmh7605 Linux - General 2 05-03-2006 01:21 PM
root login not allowed allelopath Linux - Software 6 09-07-2005 04:34 PM
Linux Host no Root login allowed or so it says? Other Linux Distros? mattnedgus Linux - Newbie 6 02-24-2005 03:22 PM
Account Allowed Login Times? c0uchm0nster Linux - Security 3 08-18-2004 04:32 AM

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

All times are GMT -5. The time now is 04:08 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