Re: Using cmd line to add group permission to shared directory in Windows 2003 server ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dmitry Korolyov [MVP] (d__k_at_removethispart.mail.ru)
Date: 04/26/04


Date: Mon, 26 Apr 2004 18:42:53 +0400

Talking about NTFS permissions and a command line, you can try tools such as
cacls, xcacls etc.

-- 
Dmitry Korolyov [d__k@removethispart.mail.ru]
MVP: Windows Server - Active Directory
  "Mads" <mattindanmark@yahoo.dk> wrote in message
news:80ddb650.0404260640.37d17394@posting.google.com...
  Hi, I have some small problem here.
  My goal is to create a shared folder ex. on c:\test and I want to add
  domain group permission to this folder by script since i want this to
  include in installer package...
  1. i user net command to create local group:
     net localgroup TESTGroup /ADD
  2. how can i add "mydomain\domain users" group into this 'TESTGroup'
  that i just create? I always get error 1789 about trust relation
  problem, since i can log on only as local adminitrator user, not a
  domain controller administrator??
  i don't have problem if i try to add local group ex. everyone to this
  'TESTGroup' without a problem
  i also try net use command and run as domain admin, but still get 1789
  error
  3. i want to grant permission of this group to BOTH share folder and
  folder security, the first one i can use "net /share ...GRANT..."
  but what's about folder security, how can i manipulate it with command
  line??
  Thanks.
  //matt


Relevant Pages

  • Re: NET SHARE Command
    ... that only using net share command you're unable to do it. ... Because net share is unable to change ACL of a folder. ... I am looking to set the permission from command prompt, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Windows 2003 file sharing and NTFS right
    ... but then I have seen cases where complex permission structures ... department for so many shared folder, ... The command completed successfully. ... who is under IT Team group and users group. ...
    (microsoft.public.windows.file_system)
  • Re: File permission after scanned a document
    ... the permission is correct when I create a file in the folder. ... IMHO this points a big finger at your scanning process. ... I have tested your command. ...
    (microsoft.public.windows.file_system)
  • Re: File permission after scanned a document
    ... I have tested your command. ... cannot inherit the permission when using DOS command create the folder? ... So other user cannot access this scanned document because no ...
    (microsoft.public.windows.file_system)
  • Re: Network shares cannot connect
    ... Changed value to 0 just waiting to re-boot the server and test logins. ... Workstation Name: - ... let's focus on the Users Shared Folder first. ... To check this permission, please click the Advanced button, select ...
    (microsoft.public.windows.server.sbs)