Other Help Topics :: Set permission to NO browse out of /home directory



in frugal mode you could chmod -R 700 the /home directory, this will eliminate anyone from being able to view anyone elses directories

Brian
AwPhuch

It does not, however, restrict the user to a single directory.

In the DOCUMENTATION of betaftp, there is a bit about the rights file, which sounds to me what you need.
Quote
The `.rights' file is laid out as follows:

privilegied.file        rw-r-----       0       1
(filename)              (rights)        (uid)   (gid)

For any file not in the list, the special case `.default' is checked. If there
is no such file, _no access is permitted_, and the file will _not show up in
directory listings_. This is in fact handy in most cases, so be careful with
adding a `.default' entry. (Note that `.rights' is never influenced by a
`.default' entry, for security.)

For directory permissions, the file `dir/.rights' is checked for the entry `.'.
Yes, I know, treating them like normal directories would be great, but
remember that there is a root directory as well...

The rights are standard r, w and x for now, no setuid, setgid or sticky bit
unless we really need it. (We could perhaps need the sticky bit later.) Be
careful with the format of the `.rights' file, as everything you set in the
rights column will be copied directly to listings. Restrict yourself to
those 9 characters, no more, no less, and only use r, w, and x.

I read the infomation. I still do not understand how you can use it. Can you explain how/where I can edit/put the file to limit user browsing out of home dir?

Thanks.

I'd have to test it out in order to say for sure, but perhaps an entry ".." might control users' access to higher directories.  I'm pretty sure the .rights file goes into the directory to which it applies.
If you find out how this can be done, please post an update with detail instruction on how to get this to work.

Thanks.

Next Page...
original here.