Re: Change Share and File Permissions (Take Ownership) when necessary. (env. NT4)
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 07/13/04
- Next message: Torgeir Bakken \(MVP\): "Re: PLEASE help--- trying to find a way to find fields in Windows"
- Previous message: Nina Harris: "Re: Force shutdown for all machines on the domain?"
- In reply to: Yngve: "Re: Change Share and File Permissions (Take Ownership) when necessary. (env. NT4)"
- Next in thread: Alexander Suhovey: "Re: Change Share and File Permissions (Take Ownership) when necessary. (env. NT4)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 00:19:48 +0200
Yngve wrote:
> SHARE PERMISSIONS:
> ------------------
> But, the hard part perhaps. How do i reset the share permissions so that
> "Everyone" will have "Full Access"? We have the policy of setting all rights
> on the file level (which havenīt been done properly though as i am in this
> mess) so the only thing i want is to reset the permissions to be the above
> (as i will maintain security on the file level only instead).
Hi
Some options:
A)
You can use Microsoft's RMTShare.exe to set permission on a share:
Q. How can I modify share permissions from the command line?
http://www.windows2000faq.com/Articles/Index.cfm?ArticleID=14459
RMTShare.exe: http://www.jsiinc.com/asp/reghacks.asp?tipnumb=6353
B)
SETACL (freeware) at http://setacl.sourceforge.net/ is also an option.
SetACL can set permissions on:
Local or remote directories
Local or remote files
Local or remote printers
Local or remote registry keys
Local or remote Win32 services
Local or remote network shares
C)
You can set the security descriptor for the shares with WMI..
SetSecurityDescriptor
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/setsecuritydescriptor_method_in_class_win32_logicalsharesecuritysetting.asp
Here is a couple of examples on the SetSecurityDescriptor method in Class
Win32_LogicalShareSecuritySetting (disregard that they use
wbemscripting.swbemlocator instead of winmgmts:, the rest will be the same):
From: Max L. Vaughn (maxvonline@microsoft.com)
Subject: RE: Add User to sharefolder
Newsgroups: microsoft.public.platformsdk.adsi
Date: 2001-11-16 14:01:51 PST
http://groups.google.com/groups?selm=ejzoroubBHA.253%40cppssbbsa01.microsoft.com
From: [MS] Tim Chen (timchen2000@hotmail.com)
Subject: Re: Folder Security
Newsgroups: microsoft.public.win32.programmer.wmi
Date: 2002-06-13 13:06:05 PST
http://groups.google.com/groups?selm=3d08f9d7%241%40news.microsoft.com
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/community/scriptcenter/default.mspx
- Next message: Torgeir Bakken \(MVP\): "Re: PLEASE help--- trying to find a way to find fields in Windows"
- Previous message: Nina Harris: "Re: Force shutdown for all machines on the domain?"
- In reply to: Yngve: "Re: Change Share and File Permissions (Take Ownership) when necessary. (env. NT4)"
- Next in thread: Alexander Suhovey: "Re: Change Share and File Permissions (Take Ownership) when necessary. (env. NT4)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|