prevent users from viewing directories of other users

Posted on 1998-07-15
Last Modified: 2010-04-21
Here's my config (Irix 6.3) : I've got home directories under saying /usr/home/ (/usr/home/user1, /usr/home/user2,/usr/home/user3,..,/usr/home/usern). Each user has no shell so that they're only able to ftp to their directories to put/remove files. If user3 ftp to it's site, I want to prevent him to be able to make cd.. and then be in /usr/home and viewing user1, user2 ....
Any help?
Question by:steph84
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
  • 4
  • 3
LVL 51

Expert Comment

ID: 2008815
install wu.ftpd, there you can set the home directory to appear as /


Author Comment

ID: 2008816
And people won't be able to make cd..??
No turn-around known to break this feature??
Do you know wich wu-ftpd config files need to be changed and how??
LVL 51

Expert Comment

ID: 2008817
Yes, no turn-around (known so far).

Files are (all in /etc)

    1. inetd.conf:      ftp port uses wu.ftpd
    2. ftpaccess (if you like ftp{conversions,groups,users} too)

I'm shure you're familar in reading man-pages ;-)
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 2008818
ok, great, answer so I could grade you.
LVL 51

Accepted Solution

ahoffmann earned 100 total points
ID: 2008819
see my comments abo

Author Comment

ID: 2008820
Ok, i've graded you. Nevertheless, i've got one more question :
wu-ftpd allow me to do that, but the trouble is that to make the chroot some files are required (, rld,.....) and these files take about 2 Mo. 2 Mo multiplied by few thousands of count make some gigas used for nothing......
Do you have a turn around?
symbolic links do not work....
LVL 51

Expert Comment

ID: 2008821
more answers for this questions are for free :-))

Ok, you should have a base directory for ftp which contains:
  lib/{whatever you need}
  pub/{in,out}      # usually

only static executables should reside in these directories. See man-pages also.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

707 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