MSFN Forum: [Question] How to make a share readonly in commandline? - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[Question] How to make a share readonly in commandline? ...using the net share command Rate Topic: -----

#1 User is offline   Doc Symbiosis 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 333
  • Joined: 03-August 04

  Posted 29 April 2006 - 12:14 PM

In use the net share command in a cmd-file to make a networkshare.
net share myshare=m:\

Problem is, that it has full access for all users.
Anyone knows, how to make it readonly ( I didn't find an appropriate switch) ?

Title edited -- Please, use [TAGS] in your topic's title.
Please follow XP Forum Rules from now on.
--Sonic



#2 User is offline   Yzöwl 

  • Wise Owl
  • Group: Super Moderator
  • Posts: 4,102
  • Joined: 13-October 04
  • OS:Windows 7 x64

Posted 29 April 2006 - 01:13 PM

Try using RMTSHARE.EXE from the NT4 Resource Kit with the /GRANT switch.

#3 User is offline   Phurious 

  • Newbie
  • Group: Members
  • Posts: 36
  • Joined: 02-March 04

Posted 07 May 2006 - 08:16 AM

I use this tool XCACLS.EXE from Microsoft when I want to adjust permissions on just about anything from a batch file. Here is some good documentation on syntax.

#4 User is offline   Doc Symbiosis 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 333
  • Joined: 03-August 04

Posted 09 May 2006 - 05:56 AM

Thanks to you both.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy