LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2016, 01:54 AM   #1
Schakal_No1
LQ Newbie
 
Registered: Oct 2016
Posts: 1

Rep: Reputation: Disabled
Samba login not working after migration


I'm maintaining a linux server. The server died last weekend and I'm trying to rebuild it. It was an ubuntu server 14.04 and the new one is 16.04. Everything is working except for samba login.

All Clients are Windows 10 Professional. The Clients can access their shares via ip (\\192.168.1.50\username is accessible) and mount network folders (all via ip) but when loging in the process always fails and the client is logged in on a temporary profile. User authentication seems to work since everyone can only access his own share.

My smb.conf looks like the following (I left out the shares since they work):

Code:
[global]                                                               
netbios name = PDC
log file = /var/log/samba/log.%m
#load printers = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
encrypt passwords = true
passwd program = /usr/bin/passwd %u
passdb backend = smbpasswd
wins support = yes
dns proxy = no
server string = <censored>
unix password sync = yes
logon path = \\%L\profiles\%U
workgroup = wie
os level = 65
log level = 3
syslog = 0
max log size = 10000
domain logons = yes
domain master = yes
local master = yes
pam password change = yes

logon drive = H:
#   logon home = \\%N\%U

add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
add group script = /usr/sbin/addgroup --force-badname %g

[homes]
create mode = 0600
directory mode = 0700
browseable = no
comment = Home Directories
writeable = yes
public = no

[netlogon]
comment = Network Logon Service
path = /ssds/samba/netlogon
guest ok = yes
read only = yes

[profiles]
comment = Users profiles
path = /ssds/samba/profiles
guest ok = no
browseable = no
create mask = 0600
directory mask = 0700
writable = yes
read only = no
store dos attributes = yes
profile acls =yes
csc policy = disable
 
Old 10-27-2016, 06:59 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
I don't do Samba, but generic advice is to start looking at logs and google for errors found.
 
Old 10-27-2016, 08:12 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
There are various ways to setup samba authentication, like winbind, joining an AD domain, etc. I do the simple way on my small network, setup a linux user account with a password that matches the desired windows username & password, then use smbpasswd to add the user to samba's local authentication database.

I don't do winbind or domain membership, can't help there.

Verify nmb service is running.

Follow Emerson's advice and check logs for messages that will help you identify the source of the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 migration vidyasagar6 Linux - Server 3 02-08-2013 04:19 PM
samba 3.0.22 migration 3.4 printers digitolx Linux - Server 0 06-28-2010 12:25 PM
Get pam time restrictions working for linux samba domain login. v2ueha6 Linux - Newbie 1 12-20-2008 03:40 AM
help in samba DC migration Red Squirrel Linux - Software 7 09-25-2008 10:33 AM
SAMBA in NT to AD migration epmd Linux - Server 0 08-13-2007 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 AM.

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