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
Code: Select all
smbclient -L 192...
Enter user's password:
session setup failed: NT_STATUS_UNSUCCESSFUL
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