| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-06-2003, 11:18 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10
Rep:
|
Anonymous login FTP
I have Mandrake 9.1 with Proftp installed and running fine. How do I get it set to do anonymous FTP ?
|
|
|
|
10-06-2003, 11:54 AM
|
#2
|
|
Member
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130
Rep:
|
Two files to play with:
Uncomment the business in proftd.conf that relates to anonymous access, and comment 'ftp' in ftpusers.
|
|
|
|
10-06-2003, 12:07 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10
Original Poster
Rep:
|
How do you get there ? I am a TOTAL newbie on Linux.
Last edited by hkgonra; 10-07-2003 at 02:16 PM.
|
|
|
|
10-06-2003, 02:45 PM
|
#4
|
|
Member
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130
Rep:
|
They should both be in /etc. Just open them with your favorite editor (pico?), recognizing a # at the beginning of a line to be a comment.
|
|
|
|
10-06-2003, 02:53 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10
Original Poster
Rep:
|
I don't really understand what you are talking about. Is it like a text config file or something ? Is there a regular GUI configuration for this ?
|
|
|
|
10-06-2003, 04:26 PM
|
#6
|
|
Member
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130
Rep:
|
/etc/proftpd.conf is the main config file for for your ftp server, and /etc/ftpusers is the file controlling which users are not allowed access to the server, thus my suggestion for commenting out 'ftp' (aka anonymous ftp).
I'm not very familiar with Mandrake, so I'm not sure if there's a utility available to configure an ftp server. However, don't be shy about about editing config files by hand (you can use KWrite as root). Just make sure to make backups before you do:
cp /etc/proftpd.conf /etc/proftpd.conf.backup
Good luck!
|
|
|
|
10-07-2003, 02:09 PM
|
#7
|
|
LQ Newbie
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10
Original Poster
Rep:
|
Here is what my config file looks like. I don't see exactly what you mean.
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nogroup
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# Needed for NIS.
PersistentPasswd off
# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
<Global>
DefaultRoot Barker
</Global>
|
|
|
|
10-07-2003, 04:28 PM
|
#8
|
|
Member
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130
Rep:
|
Sorry, I didn't realize Mandrake uses such a minimal conf file. Here's mine:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Server"
ServerType standalone
DeferWelcome off
ShowSymlinks on
MultilineRFC2228 on
DefaultServer on
ShowSymlinks on
AllowOverwrite on
TimeoutNoTransfer 600
TimeoutStalled 600
TimeoutIdle 1200
DisplayLogin welcome.msg
DisplayFirstChdir .message
LsDefaultOptions "-l"
DenyFilter \*.*/
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd off
# Port 21 is the standard FTP port.
Port 21
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nogroup
# Normally, we want files to be overwriteable.
<Directory /*>
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask 022 022
AllowOverwrite on
</Directory>
# A basic anonymous configuration, no upload directories.
## <Anonymous ~ftp>
## User ftp
## Group nogroup
## # We want clients to be able to login with "anonymous" as well as "ftp"
## UserAlias anonymous ftp
##
## RequireValidShell off
##
## # Limit the maximum number of anonymous logins
## MaxClients 10
##
## # We want 'welcome.msg' displayed at login, and '.message' displayed
## # in each newly chdired directory.
## DisplayLogin welcome.msg
## DisplayFirstChdir .message
##
## # Limit WRITE everywhere in the anonymous chroot
## <Directory *>
## <Limit WRITE>
## DenyAll
## </Limit>
## </Directory>
##
## # Uncomment this if you're brave.
## # <Directory incoming>
## # # Umask 022 is a good standard umask to prevent new files and dirs
## # # (second parm) from being group and world writable.
## # Umask 022 022
## # <Limit READ WRITE>
## # DenyAll
## # </Limit>
## # <Limit STOR>
## # AllowAll
## # </Limit>
## # </Directory>
##
## </Anonymous>
All the mojo at the bottom is what I was talking about. You can easily add these directives yourself.
|
|
|
|
10-07-2003, 05:30 PM
|
#9
|
|
LQ Newbie
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10
Original Poster
Rep:
|
Just to let everyone know this FTP server will be on the lan behind the firewall. I have another program handling the passwords and giving people access to the lan, I didn't want everyone to have to deal with double passwords.
Can I just add your stuff to the end of mine ?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:40 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|