PDA

View Full Version : group permissions


quade1337
07-13-2010, 09:55 PM
I am having trouble setting the permissions for groups.

Everytime i try to upload a file its says permession denied <directory mode>.

this is how its set in my ioftpd.ini

Upload = /XViD/* !=leechers *
Upload = * *
MakeDir = /XViD/* !=leechers *
MakeDir = * *
RemoveDir = /XViD/* !=*
RemoveDir = * *
RemoveOwnDir = /XViD/* !=leechers *
RemoveOwnDir = * *
Rename = /XViD/* !=*
Rename = * *
RenameOwn = /XViD/* !=*
RenameOwn = * *
Overwrite = /XViD/* !=*
Overwrite = * *
Delete = /XViD/* !=*
Delete = * *
DeleteOwn = /XViD/* !=leechers *

basically i have 2 groups. leechers and uploaders. I want the uploaders to have write and read axx to all the directories and the leechers just read axx to all the directories.

And only uploaders can delete a directory they made.

Zer0Racer
07-14-2010, 12:52 AM
Try if /XViD/*/* !=leechers * works.

quade1337
07-14-2010, 01:10 AM
i basically replaced /XViD/* !=leechers * with /XViD/*/* !=leechers * and it still didnt work.

does it have to do anything wit the user flags???

Yil
07-14-2010, 03:06 AM
You're looking in the wrong place...

"permission denied <directory mode>" means it's the actual directory (rwx) permission stuff that is failing. You'll want to chmod/chown the dir to get things to work right... Luckily I can now say "site help chmod" for more details :)

Yil
07-14-2010, 03:24 AM
Looking at your example a bit closer and I see something else... I don't think the !=* syntax is valid since it doesn't wildcard expand on groupnames.

You can use the "!=leechers *" syntax to disallow anyone in the leechers group while everyone else can perform the action. Or just "!*" to mean don't allow anyone to do anything. Or "=uploaders !*" to allow uploaders to do something but no-one else. You get the idea. Check out "site help" and at the bottom it should list an option for help on permission-flags...

Alternatively you can just use a user-flag like "9" or something, give that to download only users, and use that instead of the group to disallow actions that way. That's sometimes easier to maintain and the perms are a little simpler to process that testing a user's group membership...

quade1337
07-14-2010, 11:27 AM
how can i set the chmod for certain groups??????

quade1337
07-14-2010, 02:04 PM
Finally got it