Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.