Controlling grep and securing FTP
March 23, 2006
What’s the correct invocation for grep from the CI? I tried to use
RUN SH.HPBIN.SYS;INFO="grep -l <string> /HPPATH/TO/FILES/*S"
but while it runs, I get a bunch of odd-looking errors rather than file names displayed.
Ray Shahan replies:
Try this command: RUN FINDTEXT.NMPRG.CSLXL
We use the allow statement on our HP 3000 to restrict what can connect to our 3000's FTP server:
ftp allow 192.168.250.3 172.20.1.3 127.0.0.1 172.20.1.37 (and so on)
We also have our 3000 configured to use our network’s (Windows-based) DNS servers, using RESLVCNF. Can I change the allow statement in INETDSEC to use DNS names rather than IP numbers?
Matthew Perdue replies:
Yes. For example:
ftp allow 192.168.0.* 172.16.0.* domainname.net 192.168.1.*
Be careful if you need to use the line continuation character, as the HP documentation is wrong! Use the “\” rather than the “/” in postion 80 as shown in the documentation.