I’ve installed a new Nethserver and set it up as my office domain. I’ve created Shared Folders and now I’d like to have these Shared Folders to added to select domain users. I’ve used a logon.bat file in the past on Nethserver for various “net use” commands.
Is the logon.bat file in my:
folder the prefferred method to adding a shared drive by letter to a domain user? or does Nethserver have another way to add a drive letter to all/specific domain users for accessing a shared folder?
If the use of logon.bat is the preferred method…what command do I use to add that shared folder to a domain user? I was reading through the following post:
And I see that @mrmarkuz suggested this:
smbclient ///characterization -U username -W
Perhaps I’ve misunderstood the meaning of this line but I would like to assign a specific shared folder (ie: SharedDocs) to be drive letter S: for specific domain users. In the past I would have used something like the following command in my logon.bat:
if /I %USERNAME%== net use S: \<shared-server\SharedDocs /User:Workgroup\Administrator /persistent:yes
But what is the command I would use in my logon.bat for attaching a specific domain user to my share and assigning a drive letter to it? Like I said the shared folder is on my nethserver already, and I’ve already provided the domain user the rights to access the shared folder from the Nethserver GUI. I just want to get this understood so I know how to add my file shares to each domain user.