Modify Network Share Permission from Command Line using ICACLS
List files in local network share:
dir \\localhost\myshare
list permissions on share:
icacls \\localhost\myshare
allocate permissions to share:
icacls \\localhost\myshare /grant mydomain\myuser:(OI)(CI)(F)
Source:
https://theitbros.com/using-icacls-to-list-folder-permissions-and-manage-files/