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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-01-2007, 04:04 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 2
Rep:
|
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.
|
|
|
10-01-2007, 07:51 PM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441
|
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?
|
|
|
10-01-2007, 08:59 PM
|
#3
|
Senior Member
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079
Rep:
|
who runs servers with a gui?
|
|
|
10-02-2007, 05:59 AM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441
|
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.
|
|
|
10-02-2007, 07:24 AM
|
#5
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
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.
|
|
|
10-02-2007, 11:06 AM
|
#6
|
LQ Newbie
Registered: Oct 2007
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
10-02-2007, 11:29 AM
|
#7
|
Senior Member
Registered: Dec 2005
Distribution: Slackware
Posts: 1,135
|
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.
|
|
|
10-02-2007, 07:52 PM
|
#8
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,441
|
As Per Wim, use /etc/rc.local to start any procs you want at boot.
It's the last startup file that is called.
|
|
|
All times are GMT -5. The time now is 01:39 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|