PDA

View Full Version : vfs problems


Strom
05-10-2005, 12:23 PM
hello, i have spme troubles to setup the vfs correctly

i want a private dir for each user that only can be seen by the user itself (and master)

and i also want a pub dir which has no restrictions, only für user pub, not viewable by others
maybe easier to setup another ftp?

hope you can help me

strom

Harm
05-10-2005, 03:06 PM
You may also only use one vfs file for all those users and define specific permissions for thoses dirs.

You can selectively hide directories.
http://www.ioftpd.com/documentation/03-vfs.php#private

Strom
05-11-2005, 12:32 PM
thx harm

so do i have to make an extra vfs for each user? is there a script that can do it on userlogin?

Harm
05-11-2005, 03:16 PM
You only need one global vfs file.
Then you can use SITE CHATTR +h <dir> -<user> to make a dir private. In this case, it means that the dir <dir> will only be seen by the user <user> and he will be the only one to be able to browse it.

Strom
05-11-2005, 03:50 PM
but i have to do it for every user right?

these thousands of users :P

edit:

i still dont get it :x

i logged in as admin did SITE CHATTR +h "private" "-testuser1"

testuser1 can see the dir but cannot upload

but when i upload sth as admin tesuser1 can see the file in his private dir :(

dunno, @ raidenftpd each 'private' dir was linked to a usernamedir

i miss sth but dont know what, should be the same way like for predirs

Harm
05-12-2005, 12:51 AM
The dir's permissions are wrong.
http://www.ioftpd.com/kb/view.php?kbid=31

You can also create all the dirs with the users' names in some kind of /home directory. Then (if you're using FlashFXP) select all the dirs, enter SITE CHATTR +h %f "-%f" in the raw command line, press the "return" key and wait for the client to chattr all the dirs.