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 'steve'. # 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. Thanks, Steve.
At 10.01.2003 on 22:47 CET +0100, wrote Steve Blackwell:> 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 = stevebUnixname = smbname You have to login as steven, which samba maps to unixuser steve.> > 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_FAILURESure, because smblient tries with "steve" and not "steveb" If there is no "steve" user in smbpasswd, this must fail.> > 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 > 'steve'. > > # smbclient //<Windows computer>/Shared -U steveb%<my password>Here you told smbclient explicit tu use your correct username, so it runs. With regards Frank Matthie?. -- Frank Matthie? frankm@lug-owl.de
Barry, Christopher
2003-Jan-13 21:40 UTC
[Samba] mapping usernames between Windows and Linux
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. -C -----Original Message----- From: Steve Blackwell [mailto:steve.blackwell@eer.com] Sent: Friday, January 10, 2003 4:48 PM To: samba@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 'steve'. # 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. Thanks, Steve. -- To unsubscribe from this list go to the following URL and read the instructions: lists.samba.org/mailman/listinfo/samba
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 'steve'. # 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. Thanks, Steve.