Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-27-2004, 03:37 PM   #1
LQ Newbie
Registered: Oct 2004
Location: Utah
Distribution: SuSe 9.1
Posts: 2

Rep: Reputation: 0
Auto login once as root...

I'm not sure if this falls under the general catagory or not but here goes.
We have an image created that we want to blow out to machines in our labs. What we need to happen is after the image is out, we need the box to log in as a user with root privelages to be able to run some scripts that set it's IP configuration as well as a few other items.
Is there a way to have the box log in with root privelages once to run these scripts and then log back off setting up the machine for general "non-root" users?
Old 10-27-2004, 03:42 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Why don't you just start your scripts from the rc.local script so that they are run when the system boots?
Old 10-28-2004, 05:19 AM   #3
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
It seems like you could also set this up to run as a cron job?

When you say "log in as a user with root privileges" , are you talking about a remote ssh or ftp?


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-login (root account) sammykrupa Linux - Newbie 3 07-30-2005 11:27 PM
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 Root In Level 3 dezeque Linux - General 1 04-27-2004 08:25 PM
SUSE 9.0 auto root login Denich Linux - Distributions 3 12-13-2003 10:01 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration