1 Reply Latest reply: Aug 12, 2010 12:41 AM by dennis.von.eulenburg RSS

add CIFS shares from CLI

pluckyduck CertifiedPlus Novice
Currently Being Moderated

I need to add several CIFS shares and I would prefer to do it via the CLI.  I can't figure out how to exclude "everyone" and specify certain domains/groups with the initial cifs share -add command.  For example, I want to create share1 with access for only domain1/group1, domain1/group2, & domain1/group3 and not have it open to everyone.  Can someone give me the exact syntax for that command?

  • Re: add CIFS shares from CLI
    dennis.von.eulenburg Sprinter
    Currently Being Moderated

    Hey pluckyduck,

     

    the reason, that you can't figure out how to exclude/include users with "cifs shares -add" is that you cannot do it in one step.

     

    First you have to create the share: cifs shares -add share1 /vol/vol1

    Second, remove everyone/fullC. : cifs access -delete share1 everyone

    And the last one: cifs access share1 -g domain1\|group1 "Full Control"

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points