LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-01-2007, 04:04 PM   #1
nozmoking
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Can't set auto login as root in Gnome


I'm running Fedora core 4 with Gnome 2.14.0 and it will not allow me to configure auto login as root. The users selection list is blank, except when I select allow all users from etc\passwrd in which two users then appear in the list - ones that were created after installation by the former admin.

If I add root to the allowed users list it still does not appear in the selection list for auto login. There must be some other restriction placed on root login somehow but I cannot find it. The server is in a locked cabinet and runs a backup script only so I'm not concerned about security - I just want it to complete the boot up process and log in as root after a power failure or other anomaly without intervention.

Any thoughts?
Thanks!

Last edited by nozmoking; 10-01-2007 at 04:07 PM.
 
Old 10-01-2007, 07:51 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
If there's nobody there, why would you need it to login at all??
Surely all it's work is in cron jobs or daemons started by the boot process?
 
Old 10-01-2007, 08:59 PM   #3
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
who runs servers with a gui?
 
Old 10-02-2007, 05:59 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
Well, I know what you mean, but these days, a GUI isn't much overhead unless you are actually using it ie typing into it.
Otherwise, most of it gets unloaded and/or shuffled off into swap and only a stub remains in RAM.
 
Old 10-02-2007, 07:24 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
The boot process is complete at the moment that a login prompt appears. No need to login to complete the boot process. If there are some scripts running when root logs in, consider to place them somewhere else (rc.local comes to mind)

Can you login as root in the graphical environment under normal circumstances? If not, you can search the forums as the question for root access in the GUI has been asked a couple of times recently.
 
Old 10-02-2007, 11:06 AM   #6
nozmoking
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Can't set auto login as root in Gnome

Really the issue is I need to offload the backups the machine is perfoming onto a Windows box manually and I use VNC to get to the server remotely. VNC server for some reason doesn't load until after the root login so if I could get it to load up on boot that would fix the problem - I would need to make sure the scripts that retrieves the data from the remote web server that this machine backs up and rotates logs are running without a user logged in.
 
Old 10-02-2007, 11:29 AM   #7
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135

Rep: Reputation: 277Reputation: 277Reputation: 277
To answer your question without a question:

edit inittab

4:2345:respawn:/sbin/mingetty --autologin root tty<n>

edit root's .bash_profile

startx <etc>

It's not necessarily graceful, plus, if root logs in on another tty, another x session will be attempted, but it works.
 
Old 10-02-2007, 07:52 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
As Per Wim, use /etc/rc.local to start any procs you want at boot.
It's the last startup file that is called.
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
auto login on gnome 2.12 linuxmandrake Linux - General 1 02-08-2006 08:55 AM
Auto login as root lmanwarren Fedora 2 04-10-2005 06:05 PM
auto login as root Whisky_Drinker Linux - Newbie 15 01-19-2005 04:20 PM
Auto login once as root... dano1970 Linux - General 2 10-28-2004 05:19 AM

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

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