LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Anonymous login FTP (https://www.linuxquestions.org/questions/mandriva-30/anonymous-login-ftp-100846/)

hkgonra 10-06-2003 12:18 PM

Anonymous login FTP
 
I have Mandrake 9.1 with Proftp installed and running fine. How do I get it set to do anonymous FTP ?

fragglehorn 10-06-2003 12:54 PM

Two files to play with:

Uncomment the business in proftd.conf that relates to anonymous access, and comment 'ftp' in ftpusers.

hkgonra 10-06-2003 01:07 PM

How do you get there ? I am a TOTAL newbie on Linux.

:newbie:

fragglehorn 10-06-2003 03:45 PM

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.

hkgonra 10-06-2003 03:53 PM

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 ?

fragglehorn 10-06-2003 05:26 PM

/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!

hkgonra 10-07-2003 03:09 PM

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>

fragglehorn 10-07-2003 05:28 PM

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.

hkgonra 10-07-2003 06:30 PM

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 ?


All times are GMT -5. The time now is 09:33 AM.