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
Last Comment
Qlemo
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
mkramer777
ASKER
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?
awed1
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?
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.
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.
mkramer777
ASKER
How would I go about creating a script? Not familiar with that.
Maybe that might be too complicated for me though.
Then you should consider the second approach, which is "self-managed".
awed1
mkramer777,
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 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).
All of the folders are already created. Do the above solutions work the same way for folders that are already created?
Qlemo
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.