1821537 Members
2500 Online
109633 Solutions
New Discussion

Samba user mapping

 
Megan Ferguson
New Member

Samba user mapping

I'm having a few issues with mapping my network users via samba to my unix system.

HP-UX 11.23
Samba Version 3.0.14a based HP CIFS Server A.02.02.01 (this was the default install with the os)

My shares are
[vitsys]
path = /opt/local/vitsys
valid users = vitsys
force user = vitsys
public = no
writable = yes

[vituat]
path = /opt/local/vituat
valid users = vituat
force user = vituat
public = no
writable = yes

My /etc/opt/samba/smbusers.map contains:
vitsys = user1 user2
vituat = user3 user4

This only works for the first group of users and not the second. Is there a setting I may have missed regarding the users in the smb.conf?

Thanks
Meg




1 REPLY 1
CelesteG
Advisor

Re: Samba user mapping

Hi Meg,

It looks like your configuration for samba is correct.

You have your shares set up in the smb.conf file.
You have your groups/mappings set up in the smbusers.map file.
I'm assuming that you have vitsys and vituat set up in the /etc/password file as well or else your first group (vitsys) wouldn't work.

Are the mappings included in your smbusers.map file by chance duplicates of each other?
i.e.
vitsys=user1 user2
vituat=user1 user2

With the info you provided above, this is the only thing that I would think could be causing you a problem. In the smbusers.map file a domain user can only be mapped to one "account/group". It will take the first mapping it encounters as legitimite and all subsequent mappings will be ignored.

Hope this helps.