LinuxQuestions.org
Help answer threads with 0 replies.
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, 05: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 05:07 PM.
 
Old 10-01-2007, 08:51 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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, 09: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, 06:59 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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, 08:24 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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, 12:06 PM   #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, 12:29 PM   #7
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,075

Rep: Reputation: 189Reputation: 189
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, 08:52 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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 05:27 PM
auto login on gnome 2.12 linuxmandrake Linux - General 1 02-08-2006 09:55 AM
Auto login as root lmanwarren Fedora 2 04-10-2005 07:05 PM
auto login as root Whisky_Drinker Linux - Newbie 15 01-19-2005 05:20 PM
Auto login once as root... dano1970 Linux - General 2 10-28-2004 06:19 AM


All times are GMT -5. The time now is 10:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration