Re: [Samba] mapping usernames between Windows and Linux
Hi Oliver Schweikert, you wrote: > man smb.conf says: > Each line should contain a single UNIX username on the left > then a '=' followed by a list of usernames on the right. > > steveb = steve > should work. it's better to use quotes, if you have some windows names with blanks in it: unixname = "win_name_1 with_blank" "win_name_2 with_blank" der tom -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mapping usernames between Windows and Linux
On Mon, 13 Jan 2003 14:15:07 -0500 Steve Blackwell <[EMAIL PROTECTED]> wrote: > 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 man smb.conf says: Each line should contain a single UNIX username on the left then a '=' followed by a list of usernames on the right. steveb = steve should work. Oliver == oliver schweikert -- hermannstraße 11 73207 plochingen -- tel.: (07153) 21844 0178 2184477 fax: (07153) 898763 -- email: [EMAIL PROTECTED] == -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[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 ///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 ///Shared -U steveb% 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: http://lists.samba.org/mailman/listinfo/samba
RE: [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:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 4:48 PM To: [EMAIL PROTECTED] 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 ///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 ///Shared -U steveb% 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: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mapping usernames between Windows and Linux
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 = steveb Unixname = 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 ///Shared > ... > session setup failed: NT_STATUS_LOGON_FAILURE Sure, 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 ///Shared -U steveb% Here you told smbclient explicit tu use your correct username, so it runs. With regards Frank Matthieß. -- Frank Matthieß[EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[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 ///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 ///Shared -U steveb% 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: http://lists.samba.org/mailman/listinfo/samba