I need to give more than one user or group access using the /grant  prameter with Net Share?

Posted on 2008-11-17
Last Modified: 2012-05-05
I am attempting to use the net share command to grant more than one user or group permissions to a share created by the net share command.  I am using Windows 2003 server with SP2
The commands I'm currently using are:
net share IMGPROD=F:\PROD\IMG /grant:supergrp,FULL
net share IMGTEST=F:\TEST\IMG /grant:supergrp,FULL
Does anyone know the sytax that would allow me to add more users/groups with different access levels to these shares.
Question by:bcolmer
    LVL 23

    Expert Comment

    by:Malli Boppe
    Are you talking about share permissions or ntfs permissions on the shared folders.
    You can use cacls for ntfs permissions.
    LVL 4

    Accepted Solution

    It seems that multiple permissions can be only given at initial command. So you can delete it then recreate
    net share sharename=drive:path /delete
    net share sharename=drive:path /GRANT:user,[READ | CHANGE | FULL] /GRANT:user,[READ | CHANGE | FULL]

    Author Closing Comment

    Thanks CHOSWOOT.  I find that it's often the "Oh yeah - why didn't that occur to me" kinda things that solve the small nagging issues.  I could have lived without assigning multiple users with diff share perms - but this bit of info will make this procedure that much easier. - Bill

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
    In a hurry?.. scroll down to "HERE's HOW TO DO IT" Section. Greetings All, I was going to post this as question/solution, but its seems more appropriate as an article considering its length.  I felt it important to illucidate all the details c…
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now