HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 62

The set_parms Script, Networking Startup Files

Page 62 highlights

Configuring TCP/IP # chown root.sys pub # chmod 755 pub 10. If you created an incoming directory, set the permissions to allow anybody to write there but not to read its contents: # chown ftp.other incoming # chmod 333 incoming Any FTP user can now get or put files in the incoming directory, but they must know the name of the file beforehand, because they cannot list directory contents. 11. Enable FTP logging as discussed above. For example, the following entry in /etc/inetd.conf means FTP sessions and get or put operations (excluding byte count) are logged in /var/adm/SYSLOG: ftp stream tcp nowait root /usr/etc/ftpd ftpd -ll 12. Once you have edited /etc/inetd.conf, restart inetd with the following command: # /etc/killall -HUP inetd NOTE: Although FTP logging records in /var/adm/SYSLOG show any passwords entered by users logging in, no password checking is done for anonymous FTP. HP-UX TCP/IP Networking The set_parms Script On pre-installed or newly installed systems the startup script /etc/rc runs /sbin/set_parms to interactively set up a basic network configuration. The parameters set are: • Host name • Time zone • IP address • Subnet mask • Default gateway • Domain name server (DNS) • Network Information Service (NIS), one of the NFS services • Root password You can reconfigure these basic network configurations later by starting /sbin/set_parms manually: # set_parms initial Networking Startup Files When the system boots to run-level 2 or higher, the script /sbin/init.d/net starts. It fetches the configurable parameters from the file /etc/rc.config.d/netconf and executes the following commands: ifconfig Sets the IP address, subnet mask, and local loopback interface lanconfig Sets the encapsulation method route Configures the routing table For detailed information about these commands, see the man pages.. 57

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

Configuring TCP/IP
57
# chown root.sys pub
# chmod 755 pub
10. If you created an
incoming
directory, set the permissions to allow anybody to write there but not to
read its contents:
# chown ftp.other incoming
# chmod 333 incoming
Any FTP user can now get or put files in the
incoming
directory, but they must know the name of the
file beforehand, because they cannot list directory contents.
11. Enable FTP logging as discussed above. For example, the following entry in
/etc/inetd.conf
means
FTP sessions and
get
or
put
operations (excluding byte count) are logged in
/var/adm/SYSLOG
:
ftp stream tcp nowait root /usr/etc/ftpd ftpd -ll
12. Once you have edited
/etc/inetd.conf
, restart
inetd
with the following command:
# /etc/killall -HUP inetd
NOTE:
Although FTP logging records in
/var/adm/SYSLOG
show any passwords entered by users
logging in, no password checking is done for anonymous FTP.
HP-UX TCP/IP Networking
The set_parms Script
On pre-installed or newly installed systems the startup script
/etc/rc
runs
/sbin/set_parms
to interactively
set up a basic network configuration. The parameters set are:
Host name
Time zone
IP address
Subnet mask
Default gateway
Domain name server (DNS)
Network Information Service (NIS), one of the NFS services
Root password
You can reconfigure these basic network configurations later by starting
/sbin/set_parms
manually:
# set_parms initial
Networking Startup Files
When the system boots to run-level
2
or higher, the script
/sbin/init.d/net
starts. It fetches the configurable
parameters from the file
/etc/rc.config.d/netconf
and executes the following commands:
ifconfig
Sets the IP address, subnet mask, and local loopback interface
lanconfig
Sets the encapsulation method
route
Configures the routing table
For detailed information about these commands, see the
man
pages..