LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2002, 10:04 AM   #1
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Rep: Reputation: 15
Smile FTP Security??


Quick question

I have a user setup to access my ftp. he already has an ID, password, and a directory setup in /home/

I want to make it so that is the ONLY directory he has access to. How would I do that so he could not browse my entire system??

Thanks!
 
Old 08-09-2002, 10:13 AM   #2
Milkman00
Member
 
Registered: Jul 2002
Location: Tampa Bay area of FLORIDA!
Distribution: Slackware 8.1
Posts: 76

Original Poster
Rep: Reputation: 15
Just to clarify - I am running Slackware 8.1. I see a few REDHAT answers in the forum already posted, but cannot find the slack answer
 
Old 08-09-2002, 11:23 AM   #3
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Rep: Reputation: 30
Well, I am not sure how to do it for a 'normal' user, but when you use proftpd, the 'anonymous' use lives in a chrooted jail, in other words, he can't see out of his home directory. Maybe you could look in the config file and see how they did it?

Good Luck
RefriedBean

##########UPDATE###########

After asking around the kind people in #proftpd on OpenProjects IRC sent me this link.

Enjoy!

RefriedBean

Last edited by RefriedBean; 08-09-2002 at 11:35 AM.
 
Old 08-11-2002, 12:10 AM   #4
Ionized
Member
 
Registered: Jul 2002
Location: Chicago Suburbs
Distribution: Slackware 8.0
Posts: 51

Rep: Reputation: 15
Use this format in your /etc/passwd file:
username:x:1015:201:,,,:/home/./username:/usr/local/bin/ftponly

This will restrict their "root" to /home and their default login directory to /home/username.
Of course, this only works for ftp, I wish it worked for shell too, but no
 
  


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
ftp security msamuels Linux - General 3 06-01-2005 12:58 AM
Help with ftp-server security zepplin611 Linux - Security 5 07-22-2004 07:30 PM
ftp security spate Linux - Software 1 01-19-2003 07:04 PM
FTP security ! chuck77 Linux - General 4 03-05-2002 01:09 AM
FTP security vcheah Linux - Security 6 01-06-2002 05:13 AM


All times are GMT -5. The time now is 02:51 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