LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-27-2004, 03:37 PM   #1
dano1970
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
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
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?
 
  


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 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


All times are GMT -5. The time now is 06:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration