Folder permissions.

duderoo

Expert Member
Joined
Jun 7, 2005
Messages
2,938
I have some folder like

Folder > Folder > Folder > Users > User

I have managed to sort out the ALL access for users that can see from the Bold folder all the way down.

How do I go and make it so that the users can only see there respective folders. I am sure a List rights needs to be somewhere if someone can help.
 

mercurial

MyBB Legend
Joined
Jun 12, 2007
Messages
40,902
I have some folder like

Folder > Folder > Folder > Users > User

I have managed to sort out the ALL access for users that can see from the Bold folder all the way down.

How do I go and make it so that the users can only see there respective folders. I am sure a List rights needs to be somewhere if someone can help.

Are you using XP? Why not go the User Accounts panel and select "Make folders private"
 

ghalied

Senior Member
Joined
Jan 31, 2006
Messages
735
Replace the inherited permissions with explicit permissions, job done ! work the same in XP/2003/Vista
 

Claymore

Executive Member
Joined
Jan 20, 2004
Messages
8,342
Use a script, with cacls. If the user folders are the same as the user IDs, it's fairly easy.

Do a dir /b > file.txt to get the complete list of folder names dumped to a file.

Make a batch file (e.g. setperms.bat) with a command something like:
cacls d:\users\folders\%1 /e /c /t /g domain\%1:w

Then make another batchfile with the command:
for %%x in (name1 name2 name3 plus all the other names you got from file.txt) do setperms %%x

That will, for each name in that list, run the setperms file which edits the permissions so that a user with the same name as the folder is given write permissions to that folder. Make sure the main folder permissions are set to administrators:full only first, with list permissions for everything up to "d:\users\folders".

Obviously test before running - this is just off the top of my head.
 

ghalied

Senior Member
Joined
Jan 31, 2006
Messages
735
Doubt you'll be able to make the folders "hidden" so to speak, traverse folder list will let those users see the folder and content but they will only have read access to those files and folders that their permissions are set on.

Might be better just to change the folder structure/tree
 
Top