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

Restricting ftp Access with /etc/ftpusers, Creating /etc/hosts.equiv

Page 71 highlights

Configuring TCP/IP 13. Create a directory called dist under ~ftp. Set its owner to user root and its permissions to 0755 (writeable only by root). The superuser can put read-only files in this directory to make them available to anonymous ftp users. # mkdir /home/ftp/dist # chown root /home/ftp/dist # chmod 0755 /home/ftp/dist 14. Set the owner of user ftp's home directory to root and the permissions to 0555 (not writeable). # chown root /home/ftp # chmod 0555 /home/ftp Using SAM to Configure Anonymous ftp 1. Start SAM: # sam 2. Select Networking and Communications. 3. Select Network Services. 4. Select Anon FTP Deposit. 5. Choose Actions->Enable. 6. Select Anon FTP Retrieval. 7. Choose Actions->Enable. Restricting ftp Access with /etc/ftpusers When a user attempts to login to your system using ftp, the ftpd daemon checks the /etc/ftpusers file. If the file exists, and the user's login name is listed, ftpd denies access to the user. User accounts that specify a restricted login shell in /etc/passwd should be listed in /etc/ftpusers, because ftpd accesses local accounts without using their login shells. UUCP accounts should also be listed in /etc/ftpusers. You can use a text editor to edit the /etc/ftpusers file. Each line in /etc/ftpusers consists of a login name with no white space. The following is an example /etc/ftpusers file: uucp guest nobody For more information, type man 4 ftpusers at the HP-UX prompt. Creating /etc/hosts.equiv If you have already manually configured an /etc/hosts.equiv file with entries other than those of the form hostname or hostname username, do not use SAM to configure/etc/hosts.equiv. SAM does not recognize, display or add entries of other forms (such as +, -, %, or +@example_nfsnetgroup). 1. Start SAM. # sam 2. Select Networking and Communications. 66

  • 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
66
13. Create a directory called
dist
under
~ftp
. Set its owner to user
root
and its permissions to
0755
(writeable only by
root
). The
superuser
can put read-only files in this directory to make them
available to anonymous
ftp
users.
# mkdir /home/ftp/dist
# chown root /home/ftp/dist
# chmod 0755 /home/ftp/dist
14. Set the owner of user
ftp’s
home directory to
root
and the permissions to
0555
(not writeable).
# chown root /home/ftp
# chmod 0555 /home/ftp
Using SAM to Configure Anonymous ftp
1.
Start SAM:
# sam
2.
Select
Networking and Communications
.
3.
Select
Network Services
.
4.
Select
Anon FTP Deposit
.
5.
Choose
Actions->Enable
.
6.
Select
Anon FTP Retrieval
.
7.
Choose
Actions->Enable
.
Restricting ftp Access with /etc/ftpusers
When a user attempts to login to your system using
ftp
, the
ftpd
daemon checks the
/etc/ftpusers
file. If
the file exists, and the user±s login name is listed,
ftpd
denies access to the user. User accounts that specify
a restricted login shell in
/etc/passwd
should be listed in
/etc/ftpusers
, because
ftpd
accesses local
accounts without using their login shells. UUCP accounts should also be listed in
/etc/ftpusers
.
You can use a text editor to edit the
/etc/ftpusers
file. Each line in
/etc/ftpusers
consists of a login name
with no white space. The following is an example
/etc/ftpusers
file:
uucp
guest
nobody
For more information, type
man 4 ftpusers
at the HP-UX prompt.
Creating /etc/hosts.equiv
If you have already manually configured an
/etc/hosts.equiv
file with entries other than those of the form
hostname
or
hostname username
,
do not use SAM to configure
/etc/hosts.equiv
. SAM does not recognize,
display or add entries of other forms (such as
+
,
-
,
%
, or
+@example_nfsnetgroup
).
1.
Start SAM.
# sam
2.
Select
Networking and Communications
.