Operating System - HP-UX
1821638 Members
3095 Online
109633 Solutions
New Discussion юеВ

samba user.map question -> user home directory not found

 
Mark Malko
Occasional Advisor

samba user.map question -> user home directory not found

I have an nfs server that is also now running samba on it. This server participates in nis. The users home directories in the nis passwd file is mapped to /va7400/home, but on the nfs/samba server, the home directory is mounted as just /home. In my smb.conf file, i created an entry:
[homes]
comment = Home Directories
path = /home/%U

This works well for 97% of my users. (i tried /home/%u and that didn't work with the usermap)

My problem is with the usermap. I have about 7 users with names larger than 8 characters, example from user.map

ssurapan = ssurapaneni

Where, the user is using ssurapaneni as the windows login name, and ssurapan is his unix login name.
When this user tries to click on the homes share via windows, an error comes up on windows, and the following message appears in the users samba logfile:

[2002/06/12 10:50:31, 0] smbd/service.c:(248)
ssurapaneni-w2k (10.101.24.42) couldn't find service ssurapan

I have verified that /home/ssurapan does exist. Does anyone know why this does not work?

Any help would be appreciated!
thanks
mark
3 REPLIES 3
DeAnna Clemans
New Member

Re: samba user.map question -> user home directory not found

Mark,

I've seen this type of behavior with Win9[5/8] clients. XP will probably also fall into this category. They can't always recognize a share name greater than eight characters. According to my O'Reilly book on "Using Samba", p.86:

"%U=Requested client username (not always used by Samba)"

Have you tried using %u in the smb.conf file and synchronizing the NT and UNIX password with smbpasswd?

Good luck...

Gus
Mark Malko
Occasional Advisor

Re: samba user.map question -> user home directory not found

Yes i have tried that variable. The problem is that the %U or %u doesnt seem to work.

The only thing i could do to figure this out quickly was to make a sym link, and remove the path statement within the samba share.

So users connect to /va7400/home, and now the symlink points them to /home.

It works.

thanks for your response.
Mike Hassell
Respected Contributor

Re: samba user.map question -> user home directory not found

Mark,

Interesting problem here. I would take a look at the following parameters in smb.conf:

nis homedir = yes/no
homedir map = amd.map

Check out this chaper from O'Reilly Samba book:

http://www.oreilly.com/catalog/samba/chapter/book/ch06.pdf

(last page, 46)

However, since 97% of your users work just fine, using the usermap, it makes me wonder.

I would also look from the 'ssurapaneni-w2k' workstation to ensure you know the exact username that the client is passing to the samba server. You may want to look at:

username level = 3

Also what version of samba are you running? 2.x? Thanks.

-Mike
The network is the computer, yeah I stole it from Sun, so what?