Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any DOS command present using which I can change permission for a folder which reside on a remote computer. Appreciate your help on this.

Thanks.

share|improve this question

migrated from stackoverflow.com Nov 11 '11 at 13:40

This question came from our site for professional and enthusiast programmers.

2  
Actual DOS or some sort of command prompt/script? What operating system exactly? –  Tevo D Nov 10 '11 at 14:31

2 Answers 2

Looks like there is no such command specifically for this but you can use icacls command this way to achive the same

icacls \\Server_name\E$\test /grant:r "DOMAIN\%user%$":(OI)(CI)F

Hope this helps others

share|improve this answer
P:\>attrib /?
Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
       [drive:][path][filename] [/S [/D] [/L]]

  +   Sets an attribute.
  -   Clears an attribute.
  R   Read-only file attribute.
  A   Archive file attribute.
  S   System file attribute.
  H   Hidden file attribute.
  I   Not content indexed file attribute.
  [drive:][path][filename]
      Specifies a file or files for attrib to process.
  /S  Processes matching files in the current folder
      and all subfolders.
  /D  Processes folders as well.
  /L  Work on the attributes of the Symbolic Link versus
      the target of the Symbolic Link

md test
attrib +A test
share|improve this answer
    
This changes attributes, not permissions –  Canadian Luke Jul 14 '12 at 1:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.