Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9162

Windows: How to auto mount all SMB shares a user has access to?

$
0
0

Under windows (and later Mac as well), I need the functionality where a user somehow loggs in, or types his SMB credentials into a terminal and then all shares on a (Linux) Samba server that this user has access to, are mounted.

The solution can't be that separate users on the computer have individual mount scripts. A number of users will be using the same Windows account, but with individual SMB credentials.

I thought I have had this work under Ubuntu, bot now I can't recreate it even there. (Like logging into the server in general, without specifying a share. I only see the folders in the file manager which are publicly visible.)

The net view command doesn't let me specify credentials and the net use command needs a specific share to be mounted to a specific drive-letter.

Is there maybe a way that a Batch, or Python script could fetch the accessible shares from an SMB server, by giving it user credentials and then use the list of accessible shares to individually mount them?

edit:I found the access based share enum smb.conf parameter, which states to do pretty much that. But how do I tell the Windows browser my SMB credentials and browse the Samba Server?


Viewing all articles
Browse latest Browse all 9162

Trending Articles