+1.  I like this approach.

>From a security point of view, I would prefer a Local Group instead of 
>Everyone.  Use the local group string in place of "Everyone", and then add 
>share users to the Local Group.  The converse of adding is that is allows you 
>to also remove users (and access) very easily.

--
John Merryweather Cooper
Senior Software Engineer | Integration Development Group | Continuing 
Development
Jack Henry & Associates, Inc.® | Lenexa, KS  66214 | Ext:  431050 
|jocoo...@jackhenry.com




-----Original Message-----
From: Phill Hogland [mailto:phogl...@rimage.com] 
Sent: Wednesday, March 11, 2015 8:46 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Create file share with ready permissions for everyone

>       <util:User Id='WorkwiseUsers' Name='Workwise' Password='pa$$$$word'/>
>       <util:FileShare Id='FileShareWorkwise' Name='WorkwiseFS'
> Description='FileShare for Workwise backend'>
>    <util:FileSharePermission GenericAll="yes" Read="yes"
> User="WorkwiseUsers" />
>       </util:FileShare>

> And that creates the folder and the file share, but only gives 
> permissions to the Workwise user. The User parameter is mandatory when 
> creating the FileSharePermission. How can I create the file share with 
> reading permissions to everyone (not only to the Workwise user)?
>

I use:

        <CreateFolder Directory="SHAREDFOLDER" >
          <PermissionEx Id="ntPermisions_SharedFolder" Sddl="......." />
        </CreateFolder>

To get the sddl string, configure the security and network share on a target 
system, and use the calc.exe tool to generate the sddl string.  Then edit the 
string as desired.  I have not fully tested my string yet so I don't want to 
post it just yet, but in general this approach does create a share and seth the 
permissions.

And in another component, in the group
        <util:FileShare Id="sharedFolder" Name="ShareName"
Description="!(loc.RimageFolder_Description)">
          <util:FileSharePermission GenericAll="yes" User="Everyone" />
        </util:FileShare>





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Create-file-share-with-ready-permissions-for-everyone-tp7599519p7599524.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored 
by Intel and developed in partnership with Slashdot Media, is your hub for all 
things parallel software development, from weekly thought leadership blogs to 
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to