Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > adding users to shares with scripting

adding users to shares with scripting

Forum Windows 2000/NT : Windows 2000/NT General Discussion - adding users to shares with scripting

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.win2000.security (More info?)

 

I have users on two Win2k servers on active directory.
On each system, I need to create NTFS folder shares and add
the users to the share *and* to the directory folder as either
read+execute or read+write+execute.

I need a script which will permit me to add users to
shares with specified permissions. My only requirement
with scripting is that it be command-line only. No pop-ups.
This is because I need to do this over telnet or ssh in a
22x80 command prompt window.

Thanks in advance-

Bill

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.win2000.security (More info?)

 

I have not tried it myself but the rmtshare RK tool is supposed to be able
to do that for shares and supposedly works on Windows 2000 also. For folder
permissions you can use cacls, xacls, or fileacl. Cacls is already installed
on all Windows 2000 operating systems. --- Steve

http://www.winnetmag.com/Article/A [...] 14459.html -- rmtshare
syntax.
http://www.jsiinc.com/SUBM/tip6300/rh6353.htm -- rmtshare available here.
http://support.microsoft.com/defau [...] -us;135268
http://tech.cuip.net/logins/docs/Cacls-and-xcacls.htm -- cacls and xcacls
syntax


"William Hymen" <t18_pilot@hotmail.spam.com> wrote in message
news:OjmZ2PktEHA.2664@TK2MSFTNGP12.phx.gbl...
>I have users on two Win2k servers on active directory.
> On each system, I need to create NTFS folder shares and add
> the users to the share *and* to the directory folder as either
> read+execute or read+write+execute.
>
> I need a script which will permit me to add users to
> shares with specified permissions. My only requirement
> with scripting is that it be command-line only. No pop-ups.
> This is because I need to do this over telnet or ssh in a
> 22x80 command prompt window.
>
> Thanks in advance-
>
> Bill
>
>

Reply to Anonymous
Tom's Hardware > Forum > Windows 2000/NT > Windows 2000/NT General Discussion > adding users to shares with scripting
Go to:

There are 667 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them