bongets
asked on
Home folder in File server
When I create a user in my AD, it creates a profile in my file server.
Ex.
I created a user named user1
In my file server, there is a shared folder where a profile is created.
\\fileserver\home\user1
under user1 profile it has
Documents
Desktop
Downloads
Pictures
When I am logged in as Administrator in the fileserver itself. It always gives me an "access denied" error when I try to browse these folders. Only user1 can access these folders when he is logged in to his profile.
Is there any way where I can access these files/folders when I am logged in to the file server as Administrator?
Hope my question is clear. Appreciate any help you can extend.
Thank you.
Ex.
I created a user named user1
In my file server, there is a shared folder where a profile is created.
\\fileserver\home\user1
under user1 profile it has
Documents
Desktop
Downloads
Pictures
When I am logged in as Administrator in the fileserver itself. It always gives me an "access denied" error when I try to browse these folders. Only user1 can access these folders when he is logged in to his profile.
Is there any way where I can access these files/folders when I am logged in to the file server as Administrator?
Hope my question is clear. Appreciate any help you can extend.
Thank you.
ASKER
Thank you for the comment. This means that taking ownership is not the best solution because i don't want to removed the rights of the owners of these files/folders.
My only reason of wanting to access their folders is i want to create a batch file that will delete all the files older that 1 year.
I believe that when i run this batch file i will only be able to delete all the other folders except for the files/folders under this /home directory.
any idea how will i do that?
Thank you.
My only reason of wanting to access their folders is i want to create a batch file that will delete all the files older that 1 year.
I believe that when i run this batch file i will only be able to delete all the other folders except for the files/folders under this /home directory.
any idea how will i do that?
Thank you.
Hi, taking ownership should not destroy the current permissions on the folder. I;ve done this a few times without issues. However, it may depend on the server family.
To be on the safe side, you might prefer to use the command-line tool, takeown, instead of the GUI tools. This tool definitely won't change the permissions.
Try this article for more information regarding command line:
http://superuser.com/questions/356295/how-do-i-give-administrators-access-to-a-folder-without-destroying-current-permi
To be on the safe side, you might prefer to use the command-line tool, takeown, instead of the GUI tools. This tool definitely won't change the permissions.
Try this article for more information regarding command line:
http://superuser.com/questions/356295/how-do-i-give-administrators-access-to-a-folder-without-destroying-current-permi
ASKER
Hi,
I tried this command TAKEOWN /A /R /F e:\Home\Folder and I was asked with the below question.
Do you want to replace the directory permissions with permissions granting you full control ("Y" for YES, "N" for NO, "C" for CANCEL)?
I selected "N" so that I can take the ownership but not destroy the permissions. Then I went to the security option in GUI to give permission to administrator. however, it is still giving me the access denied in getting the permission.
did I do it wrong or did i missed something?
Thanks.
I tried this command TAKEOWN /A /R /F e:\Home\Folder and I was asked with the below question.
Do you want to replace the directory permissions with permissions granting you full control ("Y" for YES, "N" for NO, "C" for CANCEL)?
I selected "N" so that I can take the ownership but not destroy the permissions. Then I went to the security option in GUI to give permission to administrator. however, it is still giving me the access denied in getting the permission.
did I do it wrong or did i missed something?
Thanks.
Are you now the owner of the folder?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
I was able to use icacls c:\folder /grant administrators:f /t
but it seems that i have to do it to all of the sub-folders.
from the link you sent i was also trying the subinacl but can't seem to make it work :(
I was able to use icacls c:\folder /grant administrators:f /t
but it seems that i have to do it to all of the sub-folders.
from the link you sent i was also trying the subinacl but can't seem to make it work :(
Hi,
icacls is a great tool but yeah a pain for subfolders, might be quicker to list all folders and use a batch file.
Good luck!!
icacls is a great tool but yeah a pain for subfolders, might be quicker to list all folders and use a batch file.
Good luck!!
Do take note that, by taking ownership you will remove all other rights which is currently assigned to the file/folders.