Sponsored Content
Full Discussion: Help me Install Proftpd
Top Forums UNIX for Dummies Questions & Answers Help me Install Proftpd Post 302230958 by tien86 on Monday 1st of September 2008 06:23:24 AM
Old 09-01-2008
Can u help me some configure examples about LIMIT directive
Here I find the description but there no examples
Quote:
The Limit configuration block is used to place access restrictions on one or more FTP commands, within a
given context. Limits flow downward, so that a Limit configuration in the server config context applies to all
<Directory> and <Anonymous> blocks that also reside in the configuration; until it is overridden by a "lower"
<Limit> block. Any number of command parameters can be specified, against which the contents of the
<Limit> block will be applied. command can be any valid FTP command, but is generally one of the
following: CWD (Change Working Directory) Sent by client when changing directories. MKD / XMKD
(MaKe Directory) Sent by client to create a new directory. RNFR (ReName FRom), RNTO (ReName TO)
Sent as a pair by client to rename a directory entry. DELE (DELEte) Sent by client to delete a file. RMD /
XRMD (ReMove Directory) Sent by client to remove a directory. RETR (RETRieve) Transfer a file from the
server to the client. STOR (STORe) Transfer a file from the client to the server. In addition, the following
command-groups are accepted. They have a lower precedence than real commands, meaning that a real
command limit will always be applied instead of the command-group. READ All FTP commands which deal
with file reading (directory listing not included): RETR, SITE, SIZE, STAT WRITE All FTP commands
which deal with file or directory write/creation/deletion: APPE, DELE, MKD, RMD, RNTO, STOR, XMKD,
XRMD DIRS All FTP commands which deal with directory listing: CDUP, CWD, LIST, MDTM, NLST,
PWD, RNFR, XCUP, XCWD, XPWD ALL ALL FTP commands (identical to READ WRITE DIRS). Note
this group has the lowest precedence of all; it will not override a limit imposed by another command-group
(e.g. DIRS). Finally, a special command is allowed which can be used to control login access: LOGIN
Connection or login to the server. Applying a <Limit> to this pseudo-command can be used to allow or deny
initial connection or login to the context. It has no effect, and is ignored, when used in a context other than
server config, <VirtualHost> or <Anonymous> (i.e. using it in a <Directory> context is meaningless).
<Limit> command restrictions should not be confused with file/directory access permission. While limits can
be used to restrict a command on a certain directory, they cannot be used to override the file permissions
inherent to the base operating/file system. The following FTP commands cannot be restricted via <Limit>:
ABOR HELP MODE (not implemented, always S) NOOP PASS (use <Limit LOGIN>) PASV PORT QUIT
REST (use AllowRetrieveRestart, AllowStoreRestart) STRU (not implemented, always F) SYST TYPE
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Stop/Start proftpd

Hi everyone, I was wondering how to configure ftp access for one user when I found this board. After some searches I found my infos around proftpd (and the great config file proftpd.conf who answered to all my dreams...) but now I only need to stop proftpd and restart it (I guess it is needed... (1 Reply)
Discussion started by: Lomic
1 Replies

2. UNIX and Linux Applications

what tools can mange proftpd ?

i want to use proftpd to create a ftp server, does anyone have any good web manager tools to mange the ftp site ? (3 Replies)
Discussion started by: yarx
3 Replies

3. IP Networking

proftpd: how to set MaxStoreFileSize to one user ?

hi,all: i set "MaxStoreFileSize 20 Mb" on proftpd.conf, this parameter limit everyone to upload file less than 20M, but i want to permit one user "fred" can upload file size more than 20 Mb, how to set it ? if i set: MaxStoreFileSize 20 Mb MaxStoreFileSize 100 Mb user fred but they... (2 Replies)
Discussion started by: yarx
2 Replies

4. Solaris

Umask to ProFTPd

My user most download files to home directory with umask 002. Permissions on that files must be -rwx------, i'm right ? I thinks yes. Ok It's my easy config file. ServerName "FTP" ServerType standalone DefaultServer on Port 21... (3 Replies)
Discussion started by: jess_t03
3 Replies

5. Solaris

solaris 10 proftpd with inetd and tcp_wrappers

If I use an old inetd based service that specified /usr/sbin/tcpd for proftpd, do I have to include that when I use inetconv to create the service manifest. For example. I currently use proftpd for ftp with tcp_wrappers. My old inetd line was ftp stream tcp nowait root /usr/sbin/tcpd... (2 Replies)
Discussion started by: csross
2 Replies

6. AIX

ProftpD on AIX 6.1

I need to install proftpd on AIX 6.1 . I cant compile it from source cod because of lacking gCC compiler.. so is there any AIX proftpd package to install (3 Replies)
Discussion started by: wwwzviadi
3 Replies

7. AIX

Proftpd and AIX 7

Hi. I want to install proftpd on an AIX 7.1, but the only proftpd-1.2.8-1.aix5.1.ppc.rpm is available and it doesn't want on be installed : error: proftpd-1.2.8-1.aix5.1.ppc.rpm cannot be installed Any help (other than compilation) ? tks (0 Replies)
Discussion started by: stephnane
0 Replies

8. Red Hat

How to add a new users in proftpd server?

Hi, I have installed proftpd server in my amazon instance and how to enable a new user to access the proftpd. 1. How to add or delete a users 2. how to enable a particular user to access particular folder Regards Paulwintech (5 Replies)
Discussion started by: Paulwintech
5 Replies
ftpd(8c)																  ftpd(8c)

Name
       ftpd - DARPA Internet File Transfer Protocol server

Syntax
       /usr/etc/ftpd [ -d ] [ -l ] [ -ttimeout ]

Description
       The  server  is	the  DARPA  Internet  File  Transfer  Protocol server process.	The server uses the TCP protocol and is invoked by when it
       receives a connection on the port specified in the service specification.  For further information, see

       The server currently supports the following requests.  Case is not distinguished.

       Request	Description

       ABOR	 Abort previous command

       ACCT	 Specify account

       ALLO	 Allocate storage

       APPE	 Append to a file

       CDUP	 Change to parent of current working directory

       CWD	 Change working directory

       DELE	 Delete a file

       HELP	 Give help information

       LIST	 Give list of files in a directory (ls -lg)

       MKD	 Make a directory

       MODE	 Specify data transfer mode

       NLST	 Give name list of files in directory (ls)

       NOOP	 Do nothing

       PASS	 Specify password

       PASV	 Prepare for server-to-server transfer

       PORT	 Specify data connection port

       PWD	 Print the current working directory

       QUIT	 Terminate session

       RETR	 Retrieve a file

       RMD	 Remove a directory

       RNFR	 Specify rename-from file name

       RNTO	 Specify rename-to file name

       STOR	 Store a file

       STOU	 Store a file with a unique name

       STRU	 Specify data transfer structure

       TYPE	 Specify data transfer type

       USER	 Specify user name

       XCUP	 Change to parent of current working directory

       XCWD	 Change working directory

       XMKD	 Make a directory

       XPWD	 Print the current working directory

       XRMD	 Remove a directory

       The remaining requests specified in Internet RFC 959 are recognized, but not implemented.

       The server interprets file names according to the globbing conventions used by This allows users to utilize the metacharacters *?[]{}~.

       The server authenticates users according to three rules:

       1.   The user name must be in the password database, and not have a null password.  In this case a password must be provided by the  client
	    before any file operations may be performed.

       2.   The user name must not appear in the file

       3.   If	the  user  name  is  anonymous	or an anonymous account must be present in the password file (user ftp).  In this case the user is
	    allowed to log in by specifying any password (by convention this is given as the client host's name).

       In the last case, takes special measures to restrict the client's access privileges.  The server performs a command to the  home  directory
       of the user. To prevent system security from being breached, it is recommended that the subtree be constructed with care.  Thus the follow-
       ing rules are recommended:

       ~ftp)	 Make the home directory owned by and unwritable by anyone.

       ~ftp/bin) Make this directory owned by the superuser and unwritable by anyone.  The program must be present to support the  list  commands.
		 This program should have mode 111.

       ~ftp/etc) Make this directory owned by the superuser and unwritable by anyone.  The files and must be present for the command to work prop-
		 erly.	These files should be mode 444.

       ~ftp/pub) Make this directory mode 777 and owned by Place the files, which are to be accessible by the anonymous account,  in  this  direc-
		 tory.

Options
       -d   Enables certain debugging messages that are printed by ftpd.

       -l   Logs each ftp session to the

       -t   Sends the inactivity timeout period to timeout; otherwise, the server will timeout an inactive session after 15 minutes.

Restrictions
       Support does not exist for aborting commands.

       The use of an anonymous account is inherently dangerous and should be avoided when possible.

       The  server  must  run  as  the superuser to create sockets with privileged port numbers.  The server maintains an effective user id of the
       logged in user, reverting to the superuser only when binding addresses to sockets.  The possible security holes have been extensively scru-
       tinized, but are possibly incomplete.

Files
       Contains the list of unauthorized users

See Also
       ftp(1c), services(5), inetd(8c), syslog(8)

																	  ftpd(8c)
All times are GMT -4. The time now is 09:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy