salt icon indicating copy to clipboard operation
salt copied to clipboard

Windows: file.directory users and permissions?

Open emmellee opened this issue 13 years ago • 3 comments

In my masterless windows environment, I would like to not only create directories if they do not exist, but ensure they have the permissions I need. How might I do that?

D:\\tomcats\tomcat-jenkins\work:
  file.directory:
    - makedirs: True
    - user: Jenkins  ????
    - mode: FullControl  ????

D:\\jenkins-jobhome:
  file.directory:
    - makedirs: True
    - group: JenkinsGroup  ????
    - mode: FullControl  ????

Thanks.

emmellee avatar Nov 14 '13 23:11 emmellee

I don't think this functionality has been implemented yet for windows. @UtahDave can correct me if I'm wrong there. But we definitely want to implement it, so thanks for the report!

basepi avatar Nov 14 '13 23:11 basepi

Check out the NTFSSecurity Module. It makes managing permissions quite simple, given you have Powershell 2.0 installed. Not sure if it's possible to bundle that module with Salt?

https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85

ghostsquad avatar Jan 26 '15 17:01 ghostsquad

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

stale[bot] avatar Nov 10 '17 19:11 stale[bot]