View Single Post

   
  #2 (permalink)  
Old 02-19-2008, 09:23 PM
Joost Kremers
 
Posts: n/a
Default Re: rc.inet1.conf mod is 644

David wrote:
> Just curious, my Slack 9.1 sits behind a router and has a rfc 1918 ip
> address/net. The /etc/rc.d/rc.inet1.conf is set to 644, yet I have
> normal intra/internet access. I'm assuming because it's read as a
> config file that it only needs to be 755 if I should want to source it
> directly?


what do you mean by "sourcing it directly"? if you mean *running* it
from the command line, yes, it should be +x. (not necessarily 755, 700
would do just as well, since you'll need to run it as root anyway.)

but if you actually mean "sourcing" it (see 'man bash', search for
'source'), then no, it does not need to be executable. sourcing a file can
be done when the file is -x.

btw, rc.inet1.conf is not really read as a config file, it *is* sourced:
just check /etc/rc.d/rc.inet1. the dot is a short-hand for the source
command.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Reply With Quote