B
B
BlagoYar Silence2021-04-06 08:17:02
Windows
BlagoYar Silence, 2021-04-06 08:17:02

How to update network drive permissions?

For example, I shared a disk for reading.
net share D=D: /grant:HomeUsers,READ /users:2'
Periodically, I need to be able to write.
net share D=D: /grant:HomeUsers,FULL/users:2'

Is it possible to do this so as not to delete a network drive and then share it again, but for writing?

PS. If I just type this command
net share D=D: /grant:HomeUsers,FULL/users:2'
, then logically it says that the disk is already shared

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pumpkinm, 2021-04-06
@pumpkinm

There give full access, and use ACL for restriction.
cacls D:\Folder /E /P HomeUsers:R
cacls D:\Folder /E /P HomeUsers:F

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question