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

Configuring Anonymous ftp Access

Page 69 highlights

Configuring TCP/IP messages) are sent to /var/adm/syslog/syslog.log. Log messages from any facility at the alert level or higher are sent to the console and any terminal where the superuser is logged in. All messages at the emergency level or higher are sent to all users on the system. Configuring inetd Connection Logging The inetd daemon can log connection requests through syslogd. It logs successful connections at the information level and unsuccessful connection attempts at the notice level. By default, inetd starts up with connection logging turned off. If inetd is running with connection logging turned off, issue the following command to start it: # /usr/sbin/inetd -l If inetd is running with connection logging turned on, the same command turns it off. Configuring ftpd Logging To configure ftpd to log messages about logins, login failures, and anonymous ftp activity, follow these steps: 1. Add the -l or -v (verbose) option to the ftp line in the /etc/inetd.conf file, as in the following example: FTP STREAM TCP NOWAIT ROOT /USR/LBIN/FTPD FTPD -L The -v option provides more detailed logging than the -l option, except for anonymous ftp. For anonymous ftp, the -l and -v options provide the same level of logging. 2. Issue the following command to force inetd to read its configuration file: # /usr/sbin/inetd -c Configuring Anonymous ftp Access You can follow the instructions in this section, or you can use SAM to configure anonymous ftp access. 1. Use a text editor to add a line for user ftp to the /etc/passwd file, as in the following example: ftp:*:500:guest:anonymous ftp:/home/ftp:/usr/bin/false The password field should be *, the group membership should be guest, and the login shell should be /usr/bin/false. In this example, user ftp's user id is 500, and the anonymous ftp directory is /home/ftp. Type man 4 passwd at the HP-UX prompt for information on the passwd file. 2. Create the ftp home directory that you configured in the /etc/passwd file, as in the following example: # cd /home # mkdir ftp 3. Create the subdirectory /usr/bin under the ftp home directory: # cd /home/ftp # mkdir usr # cd usr # mkdir bin 64

  • 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
64
messages) are sent to
/var/adm/syslog/syslog.log
. Log messages from any facility at the
alert
level or
higher are sent to the console and any terminal where the
superuser
is logged in. All messages at the
emergency
level or higher are sent to all users on the system.
Configuring inetd Connection Logging
The
inetd
daemon can log connection requests through
syslogd
. It logs successful connections at the
information
level and unsuccessful connection attempts at the
notice
level. By default,
inetd
starts up with
connection logging turned off.
If
inetd
is running with connection logging turned off, issue the following command to start it:
# /usr/sbin/inetd -l
If
inetd
is running with connection logging turned on, the same command turns it off.
Configuring ftpd Logging
To configure
ftpd
to log messages about logins, login failures, and anonymous
ftp
activity, follow these
steps:
1.
Add the
-l
or
-v
(verbose) option to the
ftp
line in the
/etc/inetd.conf
file, as in the following example:
FTP STREAM TCP NOWAIT ROOT /USR/LBIN/FTPD FTPD -L
The
-v
option provides more detailed logging than the
-l
option, except for anonymous
ftp
. For
anonymous
ftp
, the
-l
and
-v
options provide the same level of logging.
2.
Issue the following command to force
inetd
to read its configuration file:
# /usr/sbin/inetd –c
Configuring Anonymous ftp Access
You can follow the instructions in this section, or you can use SAM to configure anonymous
ftp
access.
1.
Use a text editor to add a line for user
ftp
to the
/etc/passwd
file, as in the following example:
ftp:*:500:guest:anonymous ftp:/home/ftp:/usr/bin/false
The password field should be
*
, the group membership should be
guest
, and the login shell should be
/usr/bin/false
. In this example, user
ftp
±s
user id is 500, and the
anonymous
ftp
directory is
/home/ftp
.
Type
man 4 passwd
at the HP-UX prompt for information on the
passwd
file.
2.
Create the
ftp
home directory that you configured in the
/etc/passwd
file, as in the following example:
# cd /home
# mkdir ftp
3.
Create the subdirectory
/usr/bin
under the
ftp
home directory:
# cd /home/ftp
# mkdir usr
# cd usr
# mkdir bin