Avatar of mkramer777
Flag for United States of America asked on

file backup

I have a program that backs up a user's documents folder to a NAS.  It backs up to folders on the NAS that are the name of each user.  I was wondering how I would go about editing these folders permissions so only the user that should have access can save into the folder or look at the folder. I know sometimes it gets a little complicated with permissions.
Storage SoftwareMicrosoft Legacy OSWindows Server 2008

Avatar of undefined
Last Comment

8/22/2022 - Mon
Don Thomson

You should be able to log into the Nas drive via a browser.  Once logged in as an administrator, you can access the control panel  and from there, set up the users and the folder permissions

I guess I should have asked this differently.  I actually copy the folders to a win 2008 server and then backup this up to the NAS.  how do I set up this scenario of the server?

Hi mkramer777, you have a network share on the 2008 r2? server and you want each of the sub-folders to only allow the one specific user to read or write to that folder. You also want that to be a different user for each sub-folder. Is that what you are trying to do?
Your help has saved me hundreds of hours of internet surfing.

Yes.  I want a user (for example the name could be f-cpumek)  to be able to open a network share folder on the server that is called cpumek and only f-cpumek can access that folder.  A user like f-abc could not open the cpumek folder.  They would though be able to open the folder associated with their username which would be abc for example.

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.

If you are after something working automatically - sorry, no. Individual permissions need to be set for each folder. If you want to have a static setup, create a script creating the folder with corresponding permissions.

A more simple approach is to remove all permissions from the top-most folder all users' folders are in, but the create directory for everyone and full access for File Owner. With this people should be able to create folders, and if they do, only they should have access to it.

How would I go about creating a script?  Not familiar with that.
 Maybe that might be too complicated for me though.
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.

Then you should consider the second approach, which is "self-managed".


It depends on how many people you need to set up folders for and how quickly you want to do it.
If it is just a handful, go through the steps.
I think Qlemo is right though, you should be able to remove the permissions from the first folder, the one I called UserFolders, then just add the particular user's permissions to each particular folder when you make it.
That would save about half the time and effort - if it works and it should.

If you have a regiment of folders to make, you could try the PS approach and I think there is even an initial script to get you started here: https://gallery.technet.microsoft.com/scriptcenter/How-to-create-home-folder-d968f1d4 No guarantees though, I haven't had need to try it.

Happy New Year,

If there is need to do so, I can assemble a PS script prompting for the name, and do the needful. But I'm hesitant - handling of ACLs (privleges) is kind of ugly in PS (and elsewhere).
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck

All of the folders are already created. Do the above solutions work the same way for folders that are already created?

Since the users didn't create the folders themselves, as I suppose, it is getting cumbersome. If they are the owner of their folder, it is easier - just set the top-most folder privileges as suggested, making sure OWNER gets full access, and propage that to all folders.
Even if they are not owner yet, you can make them owner manually - if there are only a few folders.

It's not worth it to try to set up a script for this, IMHO.