Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dose any one know how to setup wuftp on redhat?

Status
Not open for further replies.

eli101

IS-IT--Management
Feb 1, 2001
54
0
0
US
I am trying to setup wuftp that only real user should be able to login and when they login they should come in tear home dir. and should not beadle to go one directory up
my /etc/ftpaccess looks like this any help?
# This file controls the behavior of the wu-ftpd
# ftp server.
#
# If you're looking for a graphical frontend to
# editing it, try kwuftpd from the kdeadmin
# package.

# Don't allow system accounts to log in over ftp
deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid ftp
allow-gid ftp

# Chroot all users to their home directory by default
# (comment this out if you don't want to chroot most of your users)
guestuser *
#
realuser ftponly
# If you wish to allow user1 and user2 to access other
# directories, use the line below:
# realuser user1,user2


# The ftpchroot group doesn't exist by default, this
# entry is just supplied as an example.
# To chroot a user, modify the line below or create
# the ftpchroot group and add the user to it.
#
# You will need to setup the required applications
# and libraries in the root directory (set using
# guest-root).
#
# Look at the anonftp package for the files you'll need.
#guestgroup ftpchroot

# User classes...
#class all real,guest,anonymous *
class all real *

# Set this to your email address
email root@localhost

# Allow 5 mistyped passwords
loginfails *

# Notify the users of README files at login and when
# changing to a different directory
readme README* login
readme README* cwd=*

# Messages displayed to the user
message /welcome.msg login
message .message cwd=*

# Allow on-the-fly compression and tarring
compress yes all
tar yes all

# Prevent anonymous users (and partially guest users)
# from executing dangerous commands
chmod no guest,anonymous
delete no anonymous
overwrite no anonymous
rename no anonymous

# Turn on logging to /var/log/xferlog
log transfers anonymous,guest,real inbound,outbound

# If /etc/shutmsg exists, don't allow logins
# see ftpshut man page
shutdown /etc/shutmsg

# Ask users to use their email address as anonymous
# password
passwd-check rfc822 warn

any help is gratly Appreciated
Eli





 
My first problem is that any anonymous can login if entered with a test@test.com, I only won't that real users on the system should be able to ftp
Also if a real users logs in he would be able to go up from his home directory, even I entered in /etc/passwd the /./ after the users home directory, like this
ftponly:x:110:50:FTP User:/data1/users/ftponly/./:/etc/ftponly

I just guess that something is not configured properly in my /etc/ftpaccess

Thanks in advance for any help
Eli
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top