LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba login not working after migration (https://www.linuxquestions.org/questions/linux-software-2/samba-login-not-working-after-migration-4175592328/)

Schakal_No1 10-27-2016 01:54 AM

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


Emerson 10-27-2016 06:59 PM

I don't do Samba, but generic advice is to start looking at logs and google for errors found.

Doug G 10-27-2016 08:12 PM

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.


All times are GMT -5. The time now is 11:14 AM.