06-17-2008
Hi actino,
The following is a general configuration file, for a WU-FTPD site, this is want you requested, which is located in the following example at:
# /etc/ftpd/ftpaccess
WU-FTPD Accessfile Example
ftpaccess.heavy
loginfails 2
# HEY YOU! Yeah, you with the editor.
# change the following line, or delete it, OK?
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *
limit local 20 Any /etc/msgs/msg.toomany
limit remote 100 SaSu|Any1800-0600 /etc/msgs/msg.toomany
limit remote 60 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 []
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 /var/ftp * no nobody nogroup 0000 nodirs
upload /var/ftp /bin no
upload /var/ftp /etc no
upload /var/ftp /incoming yes root daemon 0600 dirs
# directory aliases... [note, the ":" is not required]
alias inc: /incoming
# cdpath
cdpath /incoming
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 user@hostname
I hope this is of help.
Jnike
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everybody !
How can I configure the ftp in solaris systems ? Wich files ?
To resume : I want to create a user wich can get from a ftp session running from a PC, some files without going up in the directories. If I attached the ksh or sh shell to the user, he can go wherever he wants. If I... (7 Replies)
Discussion started by: MarcoW
7 Replies
2. Linux
Hello,
I use fedora linux. I want to configure my FTP server. Actually, I don't know anything about this server except that I know I have installed it. Please guide me with this.
Thx (1 Reply)
Discussion started by: HSN
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Discussion started by: nmsrao
1 Replies
4. Shell Programming and Scripting
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Discussion started by: varu0612
4 Replies
5. AIX
how to connect to ftp server in passive mode?
ftp server.abc
and how can i see ftp settings, doesn't exist some ftpd.conf
there is some other file where i check the options and configurations of ftp server?
Thanks (3 Replies)
Discussion started by: prpkrk
3 Replies
6. Shell Programming and Scripting
Hi,
I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder.
I was planning that All configuration should be done through a properties files. and finally the output should be
Files are transferred
I have developed a properties file named... (4 Replies)
Discussion started by: rahul125
4 Replies
7. IP Networking
Hi,
I have been a unix box testing machine and I access to it through putty with my creditials now I have an sftp script to transfer files from that machine to some other ftp server but recently I come to know that due to some reason ftp server is not ready so I have to make my current machine... (0 Replies)
Discussion started by: rahul125
0 Replies
8. HP-UX
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Discussion started by: krsnadasa
2 Replies
9. Solaris
hi,
I am using Solaris 10, actually i want to restrict user to access upper level directory while using ftp, means when user access a folder using ftp he has no access to go to base directory.
If i am not wrong ftp configuration file use in solaris 10 is /etc/ftpd/ftpaccess kindly confirm,
I... (1 Reply)
Discussion started by: zeeshan047
1 Replies
10. UNIX for Dummies Questions & Answers
I was asked if I can create an FTP only user on a UNIX system I've inherited at work. (Solaris).
I've worked on UNIX systems for a long time, but never really as an admin.
I searched the web, and on this forum, for information on exactly how to do this.
(The new user will also need to be... (4 Replies)
Discussion started by: HeyMoe
4 Replies
LEARN ABOUT OSX
ftpchroot
FTPUSERS(5) BSD File Formats Manual FTPUSERS(5)
NAME
ftpusers, ftpchroot -- tnftpd(8) access control file
DESCRIPTION
The ftpusers file provides user access control for tnftpd(8) by defining which users may login.
If the ftpusers file does not exist, all users are denied access.
A ``'' is the escape character; it can be used to escape the meaning of the comment character, or if it is the last character on a line,
extends a configuration directive across multiple lines. A ``#'' is the comment character, and all characters from it to the end of line are
ignored (unless it is escaped with the escape character).
The syntax of each line is:
userglob[:groupglob][@host] [directive [class]]
These elements are:
userglob matched against the user name, using fnmatch(3) glob matching (e.g, 'f*').
groupglob matched against all the groups that the user is a member of, using fnmatch(3) glob matching (e.g, '*src').
host either a CIDR address (refer to inet_net_pton(3)) to match against the remote address (e.g, '1.2.3.4/24'), or an fnmatch(3)
glob to match against the remote hostname (e.g, '*.NetBSD.org').
directive If ``allow'' or ``yes'' the user is allowed access. If ``deny'' or ``no'', or directive is not given, the user is denied
access.
class defines the class to use in ftpd.conf(5).
If class is not given, it defaults to one of the following:
chroot If there is a match in /private/etc/ftpchroot for the user.
guest If the user name is ``anonymous'' or 'ftp'.
real If neither of the above is true.
No further comparisons are attempted after the first successful match. If no match is found, the user is granted access. This syntax is
backward-compatible with the old syntax.
If a user requests a guest login, the tnftpd(8) server checks to see that both ``anonymous'' and ``ftp'' have access, so if you deny all
users by default, you will need to add both ``anonymous allow'' and ``ftp allow'' to /private/etc/ftpusers in order to allow guest logins.
/private/etc/ftpchroot
The file /private/etc/ftpchroot is used to determine which users will have their session's root directory changed (using chroot(2)), either
to the directory specified in the ftpd.conf(5) chroot directive (if set), or to the home directory of the user. If the file does not exist,
the root directory change is not performed.
The syntax is similar to ftpusers, except that the class argument is ignored. If there's a positive match, the session's root directory is
changed. No further comparisons are attempted after the first successful match. This syntax is backward-compatible with the old syntax.
FILES
/private/etc/ftpchroot List of normal users who should have their ftp session's root directory changed by using chroot(2).
/private/etc/ftpusers This file.
/usr/share/ftpd/examples/ftpusers A sample ftpusers file.
SEE ALSO
fnmatch(3), inet_net_pton(3), ftpd.conf(5), tnftpd(8)
BSD
February 28, 2003 BSD