LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-15-2018, 11:37 PM   #1
anctop
Member
 
Registered: Feb 2010
Posts: 99

Rep: Reputation: Disabled
user mapping in samba


Dear all,

Our system has been running Samba-4.2.2 for some years.
It was built from source, and configured as a workgroup file server & domain controller (see attached smb_conf.txt).
The daemons "nmbd -D" & "smbd -D" are invoked on start-up.

We're going to upgrade the software to the latest Samba-4.9.1 (also built from source with the same parameters for the "configure" script).
The build was successful, but we encounter a problem in testing the installation.

The Samba server contains a user "SMBUSER".
On a Win-7 client (computer name = CLIENT, workgroup = WKGRP) logged on as an administrator "WINUSER", executing the command

Code:
net use X: \\SERVER\Share
returned an error :

Code:
Enter the user name for 'SERVER': SMBUSER
Enter the password for SERVER:
System error 86 has occurred.

The specified network password is not correct.
However, the command works fine for Samba-4.2.2.
By comparing the level 4 logs, it appears that Samba-4.9.1 produced incorrect user mappings (see attached 4.2.2.log & 4.9.1.log).

The test was then repeated but with workgroup name added to the username :

Code:
Enter the user name for 'SERVER': WKGRP\SMBUSER
Enter the password for SERVER:
The command completed successfully.
The results imply that Samba-4.9.1 (or some earlier version) has changed the authentication mechanism.

We'd like to know how to restore the old behaviour ?
 
Old 10-26-2018, 12:23 AM   #2
linoxide
LQ Newbie
 
Registered: Oct 2018
Location: USA
Posts: 1

Rep: Reputation: Disabled
User Mapping in Samba

You can map users in Linux by choosing user map option in /etc/samba/smb.conf file and create the file that you pointed it to. The file should be a text file containing entries in the following format :
!<server user> = <client user>

For example,
!Dave = SDave

This specifies that the client user "SDave" will map to the server user "Dave" on the server.

If you want to learn more Samba techniques visit Linoxide. It is a great online tool and platform to learn Linux basic and advanced commands with examples.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba : Mapping User home direcories, and forcing UID's and GID's Nerdio Linux - Server 2 10-20-2011 02:56 AM
User mapping on RHEL AS 4.6 with Samba/Winbind to Active Directory ? GoBieN Linux - Server 1 04-03-2009 05:34 AM
samba mapping to NIS user PB0711 Linux - Server 2 01-30-2008 04:57 PM
Mapping a SAMBA directory.. arzer Linux - Networking 5 10-26-2006 03:56 AM
samba user mapping michal017 Linux - Software 4 03-18-2004 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration