Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

prevent users from viewing directories of other users

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?
Thanks.
0
steph84
Asked:
steph84
  • 4
  • 3
1 Solution
 
ahoffmannCommented:
install wu.ftpd, there you can set the home directory to appear as /

0
 
steph84Author Commented:
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??
Thanks....
0
 
ahoffmannCommented:
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 ;-)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
steph84Author Commented:
ok, great, answer so I could grade you.
0
 
ahoffmannCommented:
see my comments abo
0
 
steph84Author Commented:
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 (libc.so.1, 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....
Thanks.
0
 
ahoffmannCommented:
more answers for this questions are for free :-))

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

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

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now