Jump to content


  • 0
Kingskawn

Giving domain user rights to local disk?

Question

5 answers to this question

Recommended Posts

  • 0

or...

 

md c:\somedir
net share someshare=c:\somedir /UNLIMITED /REMARK:"someshare" /GRANT:Everyone,FULL
cacls c:\someshare /E /T /C /G "%USERDNSDOMAIN%\Administrators:f

Share this post


Link to post
Share on other sites

  • 0

or...

 

md c:\somedir
net share someshare=c:\somedir /UNLIMITED /REMARK:"someshare" /GRANT:Everyone,FULL
cacls c:\someshare /E /T /C /G "%USERDNSDOMAIN%\Administrators:f

 

The folder already exists. 2 folders on C:\program files\folder1 and C:\program files\folder2 so I imagine I just need:

 

set_disk_rights.bat

cacls %programfiles%\folder1 /E /T /C /G "DOMAIN\Domain Users:f

cacls %programfiles%\folder2 /E /T /C /G "DOMAIN\Domain Users:f

And I need to execute this batch as the domain administrator I also imagine

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.