1752801 Members
5778 Online
108789 Solutions
New Discussion юеВ

ftpaccess Entry

 
SOLVED
Go to solution
raiden
Regular Advisor

ftpaccess Entry

What does the below line in ftpaccess file means.

limit all 10 Any /etc/msgs/msg.dead
7 REPLIES 7
raiden
Regular Advisor

Re: ftpaccess Entry

Does the above line sets any limit on ftp logins because when i enabled this many users are complaining that they are not able to login.

Please help and suggest ... Should I increase that value 10
Turgay Cavdar
Honored Contributor

Re: ftpaccess Entry

It already writes in the ftpaccess exapmle file:

# Limit: The limit clause is used to restrict the number of
# concurrent connections that the ftp server will allow. If
# the number of active connections reaches the configured
# limit, then the next connection request from an ftp client
# will be refused and the contents of the message file
# (e.g. /etc/msgs/msg.dead) will be sent as a notification
# to the ftp client. See ftpaccess(4).

# NOTE: The message file must be a valid file if this clause
# is used. If the file does not exist, then a blank message
# will be notified to the ftp client.

# limit all 10 Any /etc/msgs/msg.dead
Suraj K Sankari
Honored Contributor

Re: ftpaccess Entry

Hi,
>>Does the above line sets any limit on ftp logins because when i enabled this many users are complaining that they are not able to login

The ans is YES,
Its for limit.........


Suraj
Roland Piette
Regular Advisor
Solution

Re: ftpaccess Entry

Hello Raiden,

The limit line is more complex.
Your are able to limit the ftp access for different classes.
Classes are group of ip or hostname list.
In place to limit globally the access to your ftp server, you can give access limit for each classes on specific day with message or not.

For example, consider 2 classes :
class ftp_1 subnet_1
class ftp_2 subnet_2
limit ftp_1 0 SaSu
limit ftp_1 5 MoFr
limit ftp_2 10 MoFr0800-1730

This doens't open session for subnet_1 people on Saturday and Sunday. During working days subnet_1 can open max 5 sessions at any time.
For subnet_2 people, max 10 sessions can be open at same time on working days between 08:00 and 17:30.
With this manner you can serve both subnets.

There are a lot of possibilities ! Look also at man page for ftpaccess rule priorities.

You can see connection status with commands ftpcount and ftpwho. This last command has another output under HP-UX 11.31 and other release. An escalation is open by HP to correct this problem.

Regards,
Roland
raiden
Regular Advisor

Re: ftpaccess Entry

Hi All,

Please tell me that if I want unlimited concurrent ftp connections that what value for limit should i used ..

Or

should I remove that limit line from ftpaccess file so that the number of concuurent sessions limit wil be set to unlimited.
Roland Piette
Regular Advisor

Re: ftpaccess Entry

Hello Raiden,

You can comment the line in ftpaccess with a # character in front of the line and look up the number of connection with ftpcount or ftpwho. No limit line int the file means no limit for connextion.

Regards,
Roland
Sunny123_1
Esteemed Contributor

Re: ftpaccess Entry

Hi

Just put # character in front of that line line.


Regards
Sunny