Re: Granting share access permissions from DOS prompt

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




<dev_prog@xxxxxxxxxxxxxxx> wrote in message
news:1182947055.490256.226850@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Gurus,
I was wondering if anyone knows the DOS command to grant/revoke file
sharing permissions of a shared folder.
Basically, I would like to share my USB key on the work network so
that I can access it on any work PC. Every morning, after plugging the
key, it takes (say) drive X:. I then share this as X$ and specify
permissions to my account following a sequence of right-clicks and
entering the names.
I'm hoping if this can be done by a DOS batch file or a VBS script, so
one can do the whole lot by just double-clicking this icon.
In regards to the sharing, it can be done using the NET SHARE dos
command but I don't know how to specify the access permissions as a
dos command.
If anyone has ever touched this area, it will be appreciated to
receive your recommended solution.
Cheers,

Dev


Current usage says that DOS is an operating system. It does not
exist under Windows XP. Your aim is to change permissions
with a "command line".

To make drive X: available to other users, share it as "USBKey"
instead of X$.

AFAIK, the command "net share" will set permissions only on
a Windows 2003 server but not under WinXP. Instead of setting
***share*** permissions, consider setting ***NTFS***
permissions. They can be set with cacls.exe. This implies that
you convert your USBKey from FAT to NTFS, using convert.exe.

You need to set NTFS permissions once only. They become
part of the file system.

Post again if you require more detailed instructions.


.



Relevant Pages

  • Re: Extracting Files and / or Copy files
    ... permissions ... ... or if you only want to execute one command ... sudo <command> ... The equivalent to the DOS copy command is cp -- have a look at ...
    (Ubuntu)
  • Re: ubuntu-users Digest, Vol 47, Issue 208
    ... Superuser confusion or maybe critically confused ... "Permissions" appears nowhere in Nautilus, so far as I can tell. ... I am attempting to learn to use command line. ...
    (Ubuntu)
  • Re: Why is network reading slow?
    ... I am using the DOS command prompt's copy command. ... why such an incredibly tiny buffer? ... DWORD nTotal = 0; ...
    (microsoft.public.vc.mfc)
  • Re: Ive never seen that message but Im guessing thatyou may be dealing with the
    ... If I can do a job with a single-line command ... By the way, DOS? ... I never said that attrib.exe as a console command was better - ... If I boot to Win98 and open a "console" window it's ...
    (microsoft.public.scripting.vbscript)
  • Re: Isolate home directory shares
    ... I believe the command for one subfolder would be similar to: ... removes the inheritance flag but leaves existing permissions for the ... home directories are done with ADUC using profile tab: ...
    (microsoft.public.windows.server.general)