LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-17-2002, 01:39 PM   #1
Profector
LQ Newbie
 
Registered: Oct 2002
Posts: 4

Rep: Reputation: 0
Post Proftp Config Question


I recently have started setting up a dedicated server for very small purposes (game server). One being allowing users to login and upload/download files. I downloaded pro ftp and installed it on the system, and its running fine. I am also using webmin/xinetd as well. I edited the config file for proftp, and set it to a group of users, and I tested it and users from that group were able to login. My only problem is these users have unlimited access on the server. I've searched for a while and can't seem to find a specific tutorial on how to set up folder permissions for specific users. Basically, I just want to set up a permission in which a user (test), can only access /home/test.


I hope this isn't too complicated.. thanks in advanced.
 
Old 10-17-2002, 02:18 PM   #2
te_conway
Member
 
Registered: Apr 2001
Location: MA
Distribution: redhat 7.2
Posts: 182

Rep: Reputation: 30
I think the best method is to setup no-shell accounts that do a chroot. This will not only do what yo ask but prevent a user from logging in thru telnet or ssh. No changes required to proftp

http://www.tldp.org/LDP/solrhe/Secur...p29sec295.html
 
Old 10-17-2002, 03:45 PM   #3
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
This does it for me.

<Limit LOGIN>
DenyUser !whatever
</Limit>
</Global>
# Normally, we want files to be overwriteable.
<Directory /home/*>
AllowOverWrite on
</Directory>
 
Old 10-17-2002, 05:30 PM   #4
Profector
LQ Newbie
 
Registered: Oct 2002
Posts: 4

Original Poster
Rep: Reputation: 0
So according to jstu I could do something like this in the config file?

<Limit LOGIN>
DenyUser !test
</Limit>
</Global>
# Normally, we want files to be overwriteable.
<Directory /home/*>
AllowOverWrite on
</Directory>

and this would limit the user to only access to his or her directory located within the home directory itself?
 
Old 10-18-2002, 01:14 AM   #5
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
What te_conway said looks like the best way to do it in my opinion
I am sorry i forgot a line in my last post.
If your user home directories permissions are set to 700 because it will limit them to /home.

DefaultRoot /home

<Limit LOGIN>
DenyUser !whatever
</Limit>

# Normally, we want files to be overwriteable.
<Directory /home/*>
AllowOverWrite on
</Directory>

You can also do DenyGroup iinstead of user.

Last edited by jstu; 10-18-2002 at 08:41 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on proftp synapse Slackware 1 11-09-2004 07:23 AM
Another ProFTP Problem question... gwdragon Slackware 15 10-29-2004 04:14 AM
Proftp config zuessh Linux - Software 3 04-17-2003 02:40 PM
Help with proftp config zuessh Linux - Software 3 01-10-2003 02:03 PM
ProFTP Question smurf Linux - Networking 3 12-30-2002 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration