LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-24-2005, 02:26 PM   #1
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Rep: Reputation: 15
FTP+Anonymous Access


Hello,

I have a SUSE Linux Enterprise server 9 that is running FTP. I can now allow users access to it, but I want to deny Anonymous access, even though they really cannot do much, I would still like to disable that access. Is this possible? How is it done, if so?

Also, my users will be able to upload files to their own individual html directories (/home/user/public_html) but I wanted to know how to limit the size of these directories. I am sure we will have some users who will think they can upload anything they want, and I don't want that. Is there a way to do this as well, and if so how? As an added note, I am running Apache as my web server.

Thanks in advance for any suggestions, I really appreciate everyone's help.



AceMan

Last edited by KrGAce; 02-24-2005 at 02:28 PM.
 
Old 02-24-2005, 03:19 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
If you're using proftpd, here's (part of) my config file:

Code:
<Global>
        RequireValidShell       on
        LoginPasswordPrompt     off
        <Limit LOGIN>
               DenyUser         anonymous
        </Limit>
        MaxLoginAttempts        3
        # To cause every FTP user to be "jailed" (chrooted) into a directory,
        # uncomment this line.
        DefaultRoot /multimedia
        AllowStoreRestart       on
        AllowRetrieveRestart    on
        DisplayLogin            welcome.msg
# Normally, we want files to be overwriteable.
<Directory /*>
  AllowOverwrite                on
</Directory>
</Global>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
#<Anonymous ~ftp>
#  User                         ftp
#  Group                        ftp

#  # We want clients to be able to login with "anonymous" as well as "ftp"
#  UserAlias                    anonymous ftp

#  # 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
#  <Limit WRITE>
#    DenyAll
#  </Limit>
#</Anonymous>
If you're using another server doubtless there will also be something like this in your config file.

Edit: In addition, this may be of help with the quota issue: http://www.google.com/search?q=proft...utf-8&oe=utf-8
hth!

Last edited by rose_bud4201; 02-24-2005 at 03:23 PM.
 
Old 02-24-2005, 03:22 PM   #3
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
I think I am using Pure-ftp. Where are the config files located? Thanks for the info..

AceMan
 
Old 02-24-2005, 03:34 PM   #4
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Hmmm...it appears that Pure-ftp doesn't actually use config files, it uses flags instead:

Quote:
From http://www.pureftpd.org/:


There's no need to review any long and complex configuration file, where possible mistakes could have security and reliability implications. Pure-FTPd uses simple command-line switches to enable the features you need.

You can limit the number of simultaneous users, limit their bandwidth to avoid starving your ADSL or cable-modem link, hide system files (chroot), have upload/download ratios, and moderate new uploads. Custom messages can be displayed at login-time (even changing fortune files) and when an user enters a new directory. Also, to avoid your disks being filled up, you can defined a maximal percentage, and new uploads will be disallowed once this percentage is reached.

The FXP (server-to-server) protocol is implemented. It can be available for everyone, or only for authenticated users.

Kiddies are using common brute-forcing tools that are trying to discover hidden directories. Pure-FTPd provides a protection against this. Anonymous access is secure by default. For instance, users can't access dot-files (.bash_history, .rhosts, ...) unless you explicitely enable this.
Unfortunately, there doesn't seem to be a whole lot of information on how to *disable* it, should you want to (and I heartily applaud that you want to, btw).

However, it looks like enforcing quotas is relatively simple:

- '-n <max files>:<max size>': If the server has been compiled with support
for virtual quotas, enforce these quota settings for all users (except members of the 'trusted' group) . <max size> is in Megabytes. See the "virtual quotas" section later in this document. (from http://www.pureftpd.org/README)

Last edited by rose_bud4201; 02-24-2005 at 03:35 PM.
 
Old 02-24-2005, 04:24 PM   #5
KrGAce
Member
 
Registered: Dec 2004
Location: Vermont
Distribution: Ubuntu
Posts: 58

Original Poster
Rep: Reputation: 15
Thanks for the information. I was hoping there was something in the User Maintenance section that would allow you limit restrictions on file sizes.




AceMan
 
Old 03-05-2007, 05:16 AM   #6
ubuntu_amateur
LQ Newbie
 
Registered: Sep 2006
Posts: 11

Rep: Reputation: 0
I encountered a same problem...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] anonymous ftp server and access to vfat mounts mengoshmink Linux - Networking 1 10-24-2010 07:57 AM
Anonymous access ftp using Proftpd mkabia Linux - Networking 2 12-11-2004 04:18 AM
files uploaded to anonymous ftp not readable by anonymous TheOneAndOnlySM Linux - Software 2 11-04-2004 07:42 AM
Restricting Anonymous FTP access? Comatose51 Linux - Networking 2 10-06-2003 04:17 PM
ftp says login incorrect - anonymous access works fine?!? wwwgeek Linux - Newbie 2 09-15-2001 12:46 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration