[ydl-gen] shell script

Jurvis LaSalle lasalle at bard.edu
Wed Dec 7 13:16:30 MST 2005


On Dec 7, 2005, at 2:35 PM, toehead2 at juno.com wrote:

> Hi. I am fairly new to linux, and have been trying to configure my 
> installation properly. I have a powerbook g4. I got the sound working 
> properly. I want to make a script that will perform the following 
> tasks when run :
> unmount my osx drive (must be root)
> stop the iptables service
> run mol.
> I can create a script... but how do I perform commands that you must 
> be root to accomplish?
> Thanks
> Brendan
> ______

If your OS X drive is being mounted on boot, it must be in your 
/etc/fstab .   Comment out the appropriate line and you should be set.
Are you trying to turn off iptables entirely?  If so, 'chkconfig 
iptables off' will stop it from starting on boot at all.
You can probably just startmol in your .bashrc file, but I'm not sure 
about that.  Read the man pages for fstab and chkconfig to learn more.

hth,
JL



More information about the yellowdog-general mailing list