Windows 7 - Samba Shares - multiple credentials

8

5

My home setup has a Linux server which serves several shares, each with a different user & password.

I.e.: public, user1, user2

I can connect to my shares individually via \\server\public with the user & password.

However, once I entered credentials for one of the shares, it seems I can't access any of the other shares on the same machine.

Is there a way around this?

Am.

Posted 2012-02-15T22:29:36.143

Reputation: 1 546

Is there a particular reason you don't want to create an additional user that has access to multiple shares? Also, are you mounting through explorer or using command line (e.g., net use) – Eric G – 2012-02-16T05:01:35.747

There is a specific reason. One share is public for all of the house guests (e.g. public), and others are private (user specific). Explorer uses the same windows resources as net use so there won't be any difference there. (And I tested to make sure of that) – Am. – 2012-02-16T09:12:15.683

So, it should be mapped for each logged in user, its not that you want to map them all with the same windows account? If its one account to many shares, then you should be able to add additional permissions in your samba configuration. – Eric G – 2012-02-16T14:43:12.270

My samba config has several users for different shares. That one works fine when i login each time with a different user from my client pc. but once i logged in, I cant log to another share with different credentials. – Am. – 2012-02-16T23:37:26.627

Answers

4

Following the answers here Samba+Windows: Allow multiple connections by different users?, I figured there is no solution from the windows client.

So I added several aliases to my linux server: /etc/samba/smb.conf

[global]
    unix extensions = no
    netbios aliases = ALIAS1 ALIAS2 ALIAS3
    wide links = yes
    workgroup = WORKGROUP
    os level = 20
    follow symlinks = yes
    wins support = true

then I connected to each alias with a differenet user & password.

Am.

Posted 2012-02-15T22:29:36.143

Reputation: 1 546