Fedora Linux Support Community & Resources Center
  #1  
Old 3rd April 2006, 04:45 AM
twiistedkaos Offline
Registered User
 
Join Date: Feb 2006
Posts: 347
Bash: Login to root

I search the forums and this question hsa been asked before but no one ever answers... maybe it just can't be done. Anyways, I'm creating a bash script to start certain services after my system has goten to the desktop. The thing is though the service command requires a root login / password. Is there a way to have bash log into root, then log back out? For example:

Code:
su -
<login>
service network start
<log out>
Something like that?
__________________
twiistedkaos@gmail.com Registered linux user #412697
- Fedora Core 5
- CPU: INTEL PENTIUM D/ 820/ 3.0GHz
- CD-ROM: Nec DVD-RW ND
-----------------Samsung DVD-ROM SD
- HDD Space: 260GB
- RAM: 1GB
- Sound: Audigy 4

- Video: Nvidia GeForce 5200FX
Reply With Quote
  #2  
Old 3rd April 2006, 05:25 AM
Omega Blue Offline
Registered User
 
Join Date: Apr 2005
Location: Fragrant Harbour
Posts: 1,344
Why would you need to do that? You should be able to get all your services started by the system automatically.
Reply With Quote
  #3  
Old 3rd April 2006, 08:04 PM
twiistedkaos Offline
Registered User
 
Join Date: Feb 2006
Posts: 347
Quote:
Originally Posted by Omega Blue
Why would you need to do that? You should be able to get all your services started by the system automatically.
To make it seem like the boot is faster, Since determining your ip adress takes the longest part of a boot I want to load it after I am already logged on, therefor making ti seem like my system is faster.
__________________
twiistedkaos@gmail.com Registered linux user #412697
- Fedora Core 5
- CPU: INTEL PENTIUM D/ 820/ 3.0GHz
- CD-ROM: Nec DVD-RW ND
-----------------Samsung DVD-ROM SD
- HDD Space: 260GB
- RAM: 1GB
- Sound: Audigy 4

- Video: Nvidia GeForce 5200FX
Reply With Quote
Reply

Tags
bash, login, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No root login allowed at login screen - Fedora 10 mitchellray Using Fedora 2 2nd April 2009 02:13 AM
What is exact purpose of login versus non-login bash shells? mendicant Using Fedora 4 26th March 2009 04:17 PM
f10 can't login root at login screen - su works fine bobatlcpmbdx Using Fedora 2 1st January 2009 04:36 PM
fedora 10 auto login and root login issue pcandpc Using Fedora 0 22nd December 2008 04:44 PM
root shell login shows -bash-3.2# 40esp Using Fedora 2 18th December 2007 03:25 PM


Current GMT-time: 21:57 (Tuesday, 30-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat