LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-06-2003, 11:18 AM   #1
hkgonra
LQ Newbie
 
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Anonymous login FTP


I have Mandrake 9.1 with Proftp installed and running fine. How do I get it set to do anonymous FTP ?
 
Old 10-06-2003, 11:54 AM   #2
fragglehorn
Member
 
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
Two files to play with:

Uncomment the business in proftd.conf that relates to anonymous access, and comment 'ftp' in ftpusers.
 
Old 10-06-2003, 12:07 PM   #3
hkgonra
LQ Newbie
 
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
How do you get there ? I am a TOTAL newbie on Linux.


Last edited by hkgonra; 10-07-2003 at 02:16 PM.
 
Old 10-06-2003, 02:45 PM   #4
fragglehorn
Member
 
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
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.
 
Old 10-06-2003, 02:53 PM   #5
hkgonra
LQ Newbie
 
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
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 ?
 
Old 10-06-2003, 04:26 PM   #6
fragglehorn
Member
 
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
/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!
 
Old 10-07-2003, 02:09 PM   #7
hkgonra
LQ Newbie
 
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
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>
 
Old 10-07-2003, 04:28 PM   #8
fragglehorn
Member
 
Registered: Oct 2002
Location: I-Town, NY
Distribution: Debian, Slackware
Posts: 130

Rep: Reputation: 15
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.
 
Old 10-07-2003, 05:30 PM   #9
hkgonra
LQ Newbie
 
Registered: Oct 2003
Location: TN
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
files uploaded to anonymous ftp not readable by anonymous TheOneAndOnlySM Linux - Software 2 11-04-2004 07:42 AM
how to establish ftp server with proftp to allow anonymous user login icoming Linux - Networking 3 10-12-2004 10:38 AM
Anonymous FTP? mikeshn Linux - General 4 06-08-2002 03:51 PM
ftp says login incorrect - anonymous access works fine?!? wwwgeek Linux - Newbie 2 09-15-2001 12:46 PM
Anonymous FTP Balitmoreboy Linux - Security 1 05-02-2001 06:19 AM


All times are GMT -5. The time now is 11:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration