Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Thread Tools Rate Thread Display Modes
Old 06-12-2011, 11:57 AM   #1
Join Date: Dec 2009
Posts: 43
Default How do you make a dir private

i might be missing something, but is it possible to make a dir private only for certain users. ?? if so when in the configs do i find the section.. ive searched the .ini for priv not found anything suitable.
inetz is offline   Reply With Quote
Old 06-12-2011, 10:27 PM   #2
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
Join Date: May 2005
Posts: 1,194

You have two options for private directories. The first is to use a custom .vfs file for the user or their primary group (which would affect everyone with that as their primary group). The second method is to use the 'site chattr +h' command (see 'site help chattr') which turns an existing directory into a hidden directory to everyone but those explicitly granted access via the permission list. Thus you could give access to a list of users by name, group, user-flag, etc. The chattr method is the way I would go as it's much more flexible. With a custom .vfs file you can only hide top level dirs, but you can make any directory anywhere hidden with chattr. Only VM flagged users can see/modify the private dirs hidden attribute, but to everyone else who is granted access they work as a normal directory.

Use the custom "list/stat -Zal" feature (see 'help list') to have directory listings replace the group field of directory listings with a mangled form of the access list for the dir. Provides the user listing the dir has the VM flag.

NOTE: For any user to access a path they must have access to every dir in the entire path. Thus if you make the /GAMES dir hidden to everyone but those in the games group all subdirs under /GAMES accessed via that path are also hidden. The only exceptions would be pure virtual directories in some cases (there's a feature to help expose hidden dirs this way but I'm not aware of anyone using it), and a .vfs file that mounts subdirs of the /GAMES dir under additional names so it could be access some other way than through /GAMES.

Use 'site chattr' it's a better way to do things and updating multiple .vfs files is far more prone to errors over time as you forget to update it. Under either method just make sure that sitebot and/or any search results are set up to not report results under the hidden dirs.
Yil is offline   Reply With Quote
Old 06-13-2011, 06:19 AM   #3
Join Date: Dec 2009
Posts: 43

thank you i used chattr +h ... worked like a charm
inetz is offline   Reply With Quote

dir, find, make, private, section

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump

All times are GMT -5. The time now is 09:22 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)