PDA

View Full Version : Subdirs Permissions


deco
01-08-2006, 10:15 PM
Hi m8´s !

I have a problem that I cant fix for now ...
The problem is to upload files to a dir or make new folders. I have in root dir sections like /folder1, /folder2, etc.,
Comon user can make dirs and up files inside your own folder( /folder1/myFolder/...) , but this user cannot make dirs or up files in other own´s folder ( /folder1/otherOwnFolder/CD1). This way this user cannot race another user making CD2 or just upping files to CD1.. the message is "permission denied".
What´s wrong ?

EwarWoo
01-08-2006, 11:27 PM
[VFS]
###
# Default attributes for files & directories
#
# Required Parameters: <filemode> <owner uid>:<owner gid>
#

Default_Directory_Attributes = 777 0:0
Default_File_Attributes = 777 0:0
Old_Directory = 777 0:0
Old_File = 777 0:0
New_Directory = 777 0:0
New_File = 777 0:0

deco
01-09-2006, 07:25 AM
Not work m8 ...

I found error, but I dont know how to fix it ..

The problem is with CHMOD 777 permissions. I set this permission on /folder1 , but this permission dont apply to subdirectories... like /folder/CD1. if I set permissions CHMOD on /folder1/CD1 it works ... Others user with normal flag can up for it ..

The questions is: How can I set this to subfolders automatically ?

EwarWoo
01-09-2006, 02:57 PM
The above lines dont solve your current problem they just stop it recurring.
Meanwhile you're gunna have to just chmod, or delete the .ioftpd files.

deco
01-09-2006, 07:58 PM
yeah, deleting .ioftpd files solve this problem. I think this error occured because in my ioFTPD.ini was set as follow:
[VFS]
###
# Default attributes for files & directories
#
# Required Parameters: <filemode> <owner uid>:<owner gid>
#

Default_Directory_Attributes = 755 0:0
Default_File_Attributes = 644 0:0

and now I set with this:

Default_Directory_Attributes = 777 0:0
Default_File_Attributes = 666 0:0

This way new dirs work !

Tks for support EwarWoo ! :D