[Samba] mapping usernames between Windows and Linux

Barry, Christopher cbarry at infiniconsys.com
Mon Jan 13 21:40:01 GMT 2003

You are doing it right. It maps the variable %U (the name samba gets from you on your windows box when you connect) to the UNIX name you specify. NT is the one having the problem, as it is getting your UNIX username. This is expected behavior.


-----Original Message-----
From: Steve Blackwell [mailto:steve.blackwell at eer.com]
Sent: Friday, January 10, 2003 4:48 PM
To: samba at lists.samba.org
Subject: [Samba] mapping usernames between Windows and Linux

My username is different on my Linux box than on my Windows box so I used 
the line

username map = /etc/samba/smbusers

in my smb.conf file and this file includes the line

steve = steveb

However when I'm logged on to my Linux box as 'steve' and use the 
smbclient command like this:

# smbclient //<Windows computer>/Shared
session setup failed: NT_STATUS_LOGON_FAILURE

it still tries to log me on with my Linux username. I checked this using 
Ethereal. The environment variables $USER and $LOGNAME are both set to 

# smbclient //<Windows computer>/Shared -U steveb%<my password>

works OK. Can someone tell me how to do this mapping correctly?

I'm using samba-2.2.7-2 on a RH8.0 box.

To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list