Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Samba denies login after upgrade to Jessie

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
jessie4thewin
Posts: 1
Joined: 2016-01-02 19:16

[Solved] Samba denies login after upgrade to Jessie

#1 Post by jessie4thewin »

Hi everyone

I just upgraded to jessie and now Samba won't let me log in anymore. I merged smb.conf manually. It now looks like this (removed comments):

Code: Select all

[global]
   workgroup = WORKGROUP
   dns proxy = no
   bind interfaces only = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   security = user
   server role = standalone server
   encrypt passwords = yes
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes

[homes]
   comment = Home Directories
   browseable = no
   read only = no
   create mask = 0700
   directory mask = 0700
   valid users = %S
   path = /home/%S/smb

[shared]
comment = Shared Directories
browseable = yes
read only = no
create mask = 0600
directory mask = 0700
valid users = some users here
force user = share
path = /home/share/smb

[media]
comment = media directory with http streaming ability
browseable = yes
read only = no
create mask = 0660
directory mask = 0770
valid users = some users here
force user = www-data
path = /home/media
hide files = /_h5ai/
veto files = /_h5ai/.htaccess/

[vhosts]
comment = virtual hosts
browseable = no
read only = no
create mask = 0660
directory mask = 0770
valid users = developers here
force user = www-data
path = /var/www
With smbclient logs as follows:

Code: Select all

smbclient -L 192...
Enter user's password: 
session setup failed: NT_STATUS_UNSUCCESSFUL
Btw. if I provide a wrong password, it raises NT_STATUS_LOGON_FAILURE, also if retry with the correct password.

What could have gone wrong?

Thanks in advance!

Edit: Not sure about what resolved the issue. But after I purged samba, reconfigured it, added the users AND set www-data's shell to bash again (which was changed during the update), it now seems to work :roll: :D

Post Reply