LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-04-2002, 07:34 PM   #1
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Rep: Reputation: 15
FTP security !


I am using redhat 7.1 and setting up ftp login. How do i restrict user from browsing other directories...other than their home directory ?? i just want them to upload and download from their home directory only..

Thanks...
 
Old 03-04-2002, 07:44 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
make sure they don't belong to any groups other than their own home directory. might want to read up on read write and execute permissions in linux..

-trickykid
 
Old 03-04-2002, 08:30 PM   #3
chuck77
Member
 
Registered: Nov 2001
Location: singapore
Posts: 120

Original Poster
Rep: Reputation: 15
Hi. The user is able to : cd /home and browse the
whole home directory. I want to disable that...and
keep them solely on their /home/user directory.
 
Old 03-05-2002, 12:00 AM   #4
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Rep: Reputation: 30
Can u make all sub directories only available to root or such?
 
Old 03-05-2002, 12:09 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Are you using chroot?


I think you want something like this


#!/bin/sh
[ "$1" = "-c" ] && a="$*"
sudo /usr/sbin/chroot /home/$USER /bin/su - $USER $a

see this link

http://tjw.org/chroot-login-HOWTO/



probably what you would do is for each real user, make a user that has a link to the same home directory of the real user and change their shell to the script above

Last edited by DavidPhillips; 03-05-2002 at 12:34 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ftp security msamuels Linux - General 3 05-31-2005 11:58 PM
Help with ftp-server security zepplin611 Linux - Security 5 07-22-2004 06:30 PM
ftp security spate Linux - Software 1 01-19-2003 06:04 PM
FTP Security?? Milkman00 Linux - Software 3 08-10-2002 11:10 PM
FTP security vcheah Linux - Security 6 01-06-2002 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:07 AM.

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