Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Proftpd

Posted on 2003-03-06
4
Medium Priority
?
356 Views
Last Modified: 2013-12-15
Hi, Im running proftpd version 1.5h on Linux Mandrake 7.2.

I have 3 websites on this box and I also have about 20 email users who have /home/ directories which have files in there that are used for imap. I dont want these users to be able to ftp onto the server, but I still need ftp enabled for the 3 users that have websites, is this possible?

I.E I have 23 users, but I only want 3 of these users to have ftp access, how is this done?

Thanks
0
Comment
Question by:choccarlm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
naccad earned 200 total points
ID: 8083832
use a LIMIT directive, something like this:

<Limit ALL>
  AllowUser webadmin1
  AllowUser webadmin2
  AllowUser webadmin3
  DenyAll
</Limit>

Alternatively, you can add all the 3 users with websites
to a different group, something ftpallow

i.e.

in /etc/group
ftpallow:x:1001:webadmin1,webadmin2,webadmin3

and then in proftpd.conf

<Limit ALL>
  AllowGroup ftpallow
  DenyAll
</Limit>

tc
-nick
0
 

Author Comment

by:choccarlm
ID: 8086934
Hi,

I tried using :

<Limit ALL>
 AllowUser webadmin1
 AllowUser webadmin2
 AllowUser webadmin3
 DenyAll
</Limit>

But it hasnt worked, it still lets any user log in.
0
 

Author Comment

by:choccarlm
ID: 8086969
Hi, The way that worked for me was to use:

<LIMIT LOGIN>
order deny,allow
AllowUser webadmin1
AllowUser webadmin2
AllowUser webadmin3
DenyAll
</Limit>
0
 

Expert Comment

by:CleanupPing
ID: 9076653
choccarlm:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question