Omejitev userjev na ftp-ju

Jaka Mele jack na ro.zrsss.si
Sre Jan 22 09:41:35 CET 1997


On Tue, 21 Jan 1997, Milan Gabor, FERI Maribor, Slovenia wrote:

> A lahko kdo pomaga in pove, kako omejiti stevilo ftp uporabnikov na
> linux masini. Zadnje case se jih prevec obesi naenkrat gor, potem pa se
> nikamor ne zgane.
> 

Tole je moj /etc/ftpaccess ... Poglej si vrstice ki se zacnejo na "limit"
in pol poglej "man ftpd" .. aja, mozno je da imas ftpd skompajlan tako, da
ftpaccess file isce kje drugje - to bos moral odkriti sam. Sicer pa imam 
jaz wuftpd 2.4

---------------

loginfails 2

class   local   real,guest,anonymous *.arnes.si 0.0.0.0 localhost
class   remote  real,guest,anonymous *

limit   local   15  Any                 /etc/msgs/msg.toomany
limit   remote  15 SaSu|Any2000-0600    /etc/msgs/msg.toomany
limit   remote  10  Any                 /etc/msgs/msg.toomany

readme  README*    login
readme  README*    cwd=*

message /welcome.msg            login
message .message                cwd=*

compress        yes             local remote
tar             yes             local remote

# allow use of private file for SITE GROUP and SITE GPASS?
private         yes

# passwd-check  <none|trivial|rfc822>  [<enforce|warn>]
passwd-check    rfc822  warn

log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg

# all the following default to "yes" for everybody
delete          no      guest,anonymous         # delete permission?
overwrite       no      guest,anonymous         # overwrite permission?
rename		no	guest,anonymous		# rename permission?
chmod           no      anonymous               # chmod permission?
umask           no      anonymous               # umask permission?

# specify the upload directory information
upload  /home/ftp  *             no
upload  /home/ftp  /incoming     yes     root    ftpadmin  0040 nodirs
upload  /home/ftp  /bin          no
upload  /home/ftp  /etc          no

# directory aliases...  [note, the ":" is not required]
alias   inc    /incoming
alias   taper  /incoming/taper

# cdpath
cdpath  /pub
cdpath  /

# path-filter...
path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-

# specify which group of users will be treated as "guests".
guestgroup ftponly

email ftpadm na zrsss.si

---------------

       						bye, Jack

 Jaka Mele         | jaka.mele na arnes.si    | Those who do not understand Unix
 ARNES, Jamova 39  | Tel: +386 61 125-1515 |   are condemned to reinvent it, 
 SI-1000 Ljubljana | Fax: +386 61 125-5454 |             poorly. 
     Member of Linux User Group Of Slovenia   http://www.zrsss.si/~lugos/




Dodatne informacije o seznamu Starilist