Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing share permissions: 100's of folders

Status
Not open for further replies.

hillboy

Technical User
May 13, 2002
53
Hello,

I had to move all of my user's personal folders from one drive on my file server to another drive on the same server because of space. Shares and NTFS permissions are the same (I used a product called Secure Copy). However, I now have duplicate shares on the same server and need to remove either the NTFS permissions or (ideally) the share permissions on the original drive for hundreds of users. The parent directory is NOT shared. I would prefer not to delete these files just yet until I am sure that everything copied over correctly. Any ideas?

Thank you in advance for any help.
 
I'm confused... You have "duplicate shares" on the "same server"?

I need either sleep to better decipher your explanation (maybe it's me) or I need a clearer explanation... but you can script permissions changes for both NTFS and shares using command line tools:

for shares:
NET SHARE

and for NTFS permissions:
CACLS

Reference links:


-Lee

Those who ask why, learn
 
Delete the folder's will also work. If you just did a copy and you have a bit for bit copy..just remove the old stuff.
 
hi,
if you have removed "Share Option" from the original folder,
nobody can access (via Network the folder)
(except using X$:\path\yourfolder).

However if you want be sure that nobody can modify data,
right click on parent folder (the one was shared before)
and in General tab set Read Only attribute (recursive on children) and in Security tab, remove all user settings
except administrators (also just local admin) and pressing
advanced button
uncheck "Inherit ... "
and
check "Replace permission ... on all child ..."

bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top