LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Root Account Not Showing At Login... (https://www.linuxquestions.org/questions/debian-26/root-account-not-showing-at-login-895456/)

Iridiumx2 08-04-2011 01:42 AM

Root Account Not Showing At Login...
 
Hello all... I just installed Debian 6 on a server and when the server powers up, it shows me all the accounts I created in order for me to choose and login under an account, except for the root account. At the colo where the server is going, they need the root account at the login screen. Thanks

acid_kewpie 08-04-2011 01:46 AM

This is the xwindows login? You should never run x as root. If you need to run graphical tools as root you should sudo or su to root from a normal account.

lugoteehalt 08-04-2011 02:24 AM

Quote:

Originally Posted by acid_kewpie (Post 4433272)
This is the xwindows login? You should never run x as root. If you need to run graphical tools as root you should sudo or su to root from a normal account.

Don't think I'm hijacking thread by asking: Does this mean that one should not become root when inside X - X having been started as an ordinary user? You know, it is always encouraging you to give the root password, to install updates for instance, and it always worries me.

Iridiumx2 08-04-2011 02:26 AM

Yep i know, but the colo network admins demand that there may be a way for them to log in as root if they need to. They are used to CentOS and are not used to Debian. Thanks

acid_kewpie 08-04-2011 02:30 AM

well then they should flip to a virtual console and log in there. If these "admins" need a gui then they are big girls blouses. Mind you I've no idea what this login screen looks like, can you not just type the name in?

acid_kewpie 08-04-2011 02:32 AM

Quote:

Originally Posted by lugoteehalt (Post 4433301)
Don't think I'm hijacking thread by asking: Does this mean that one should not become root when inside X - X having been started as an ordinary user? You know, it is always encouraging you to give the root password, to install updates for instance, and it always worries me.

no, the Xwindows server processes are not running as root that way, that's the point. In terms of installing updates, I'd generally do that via sudo, so never use the root password. Various gnome gui tools and things tend to use root though if that's what you mean.

XavierP 08-04-2011 03:08 AM

Debian (or Gnome) disabled it by design. You can fix it in the config files, but you lose a lot of security and the option to find out who issued "rm -rf /" as root if it is enabled. Your colo poeple, as professionals, should know how and why to use sudo.

cynwulf 08-04-2011 05:58 AM

There is no need to use sudo... open a terminal emulator:

Code:

su
command1
command2
command3
exit

Code:

su -c 'command'
Code:

gksu command
Code:

gksu command &
If you need to log in to an x session as root though, you're doing something wrong. I'll skip the lecture as to why it's such a bad idea - but there is simply no need for it.

acid_kewpie 08-04-2011 06:12 AM

what do you mean, no "need" to sudo?? It's generally better to use sudo than su. sudo isn't a hassle.

j1alu 08-04-2011 07:16 AM

If you want to run gui-apps _and_ got gdm running neither su nor sudo will help. sux or gksu will.

I can't see a hassle in using su. I can see one in setting up sudo properly.

cynwulf 08-04-2011 08:45 AM

Quote:

Originally Posted by acid_kewpie (Post 4433484)
what do you mean, no "need" to sudo??

As a replacement for:

Code:

su
command1
command2
command3
exit

There is no "need" for sudo - it's simply down to preference.

If say I want to set up my normal user to shutdown from a window manager (only one example) - there is a "need" for sudo (i.e. nothing else would do the job as simply and efficiently) and that's where it absolutely shines.

Quote:

Originally Posted by acid_kewpie (Post 4433484)
It's generally better to use sudo than su.

In your opinion of course?

Quote:

Originally Posted by acid_kewpie (Post 4433484)
sudo isn't a hassle.

Neither is:

Code:

su
command1
command2
command3
exit


XavierP 08-04-2011 04:46 PM

On a home PC - single user - yes, su is more convenient. On a multi admin site you need a sane way to log changes, su will not give you this.

TobiSGD 08-04-2011 06:11 PM

Quote:

Originally Posted by acid_kewpie (Post 4433305)
well then they should flip to a virtual console and log in there. If these "admins" need a gui then they are big girls blouses. Mind you I've no idea what this login screen looks like, can you not just type the name in?

I can only second that. If those people really need to log in as root to a graphical session you should change your "admins", not the system.

j1alu 08-04-2011 08:47 PM

Quote:

Originally Posted by XavierP (Post 4433986)
On a home PC - single user - yes, su is more convenient. On a multi admin site you need a sane way to log changes, su will not give you this.

That is very different from what you said in the first place:
Quote:

what do you mean, no "need" to sudo?? It's generally better to use sudo than su. sudo isn't a hassle.
and to that i answered.

frankbell 08-04-2011 09:13 PM

In GDM, before you log in, look for a "Configure the Login Manager" menu item (I forget the exact wording).

Open that (it will ask for a password) and look for a setting to "Allow local administrator." That will unlock the root login for the GDM.

I'm not going to get involved in the login or not login as root debate.


All times are GMT -5. The time now is 05:44 AM.