Operating Systems > Linux and UNIX
Script Writing Quetsion in Linux
LorKorub:
VoidMain...
You are the man! That su - -c "/directory/directory/script" line worked. I get prompted for the root password, but that is cool. can you somehow integrate the root password into that? Or do you *have* to type it in?
I will PM you some of the details of the scripts in question tomorrow, just in case everyone wasnts to elaborate and expand on this concept further (it is good info for newbies.)
Thanks for the help.
badkarma:
quote:Originally posted by LorKorub:
VoidMain...
You are the man!
--- End quote ---
nothing new there ... lol ;)
voidmain:
quote:Originally posted by LorKorub:
That su - -c "/directory/directory/script" line worked. I get prompted for the root password, but that is cool. can you somehow integrate the root password into that? Or do you *have* to type it in?
--- End quote ---
The "sudo" will do what you want as I mentioned before. If you have it installed you should be able to do a "man sudo" and you should also have a configuration file called "/etc/sudoers". If you don't have it installed you should have it on your installation CD, it's a small utility. Like many things in UNIX, it isn't the most intuitive utility but it is very powerful and handy and it is security concious.
dbl221:
Uhm... perhaps I am an idiot for saying this but why not just put a symbolic link in /etc/rc.d/rc3.d to the startup script in /etc/rc.d/init.d. Then pppoe starts up when you boot.
Just smack me if this is out of line.
voidmain:
Good question, other than maybe he doesn't want to "always" be connected. I personally would have added it to the "/etc/sysconfig/network-scripts/ifup-post" script.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version