LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-13-2021, 11:46 AM   #1
rob11715
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Rep: Reputation: Disabled
Samba - 'null passwords = Yes' not working going from Samba 3 to 4


A Windows net use command works fine when there is a password but with no password set via 'smbpasswd -n <user>' I get:

System error 2148073478 has occurred.

Here's my smb.conf file:

[global]
workgroup = TESTIMAG
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
encrypt passwords = Yes
null passwords = Yes
debug uid = Yes
admin users = root
create mask = 0666
directory mask = 0777
security = user
passdb backend = tdbsam
# added after incorrect password error
ntlm auth = true

[IMAGES]
comment = Production Images
path = /images/base
write list = +imgrw, +img2, +img3
read only = No
hosts allow = 10.9.1. 10.101.10. 192.168.131.115
 
Old 05-15-2021, 04:43 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,812

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
Which Windows version? Just wondering if the encrypted password policy may be at play here.
 
1 members found this post helpful.
Old 05-16-2021, 10:50 AM   #3
rob11715
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Windows 10, but it works with the old server running Samba 3. By 'encrypted password policy' I assume you're referring to a Windows setting? I'll do a search on that and see if changing the setting has any effect.

Both 'encrypt passwords = Yes' and 'null passwords = Yes' in smb.conf get a warning that they are deprecated when I run testparm on the new Linux server. Any time I encountered 'deprecated' it meant it's going away but still works, so I assume that's the case here.

Another problem is it's an odd setup, user IDs but no passwords, so I haven't been able to find much searching google and this site. Most people are interested in setting up a share with no IDs or passwords, or if they use ID's they're using passwords as well.

I don't like the way it's set up, but there's a big rush to get off a very old version of Linux and Samba and I thought I'd get there first before revamping anything.

Thanks for the reply.
 
Old 05-16-2021, 01:54 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,812

Rep: Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141Reputation: 1141
Encrypted passwords have been the default since samba 3.0.0 so there is no need to use 'encrypt passwords = yes' anyway. Since the users are not using passwords, you could consider implementing guest accessible shares perhaps?

https://wiki.samba.org/index.php/Set..._smb.conf_File

I'm not sure how 'null passwords' behaviour should be (never used it), but you could liaise with the samba team perhaps..
https://wiki.samba.org/index.php/Bug_Reporting
 
1 members found this post helpful.
Old 05-17-2021, 11:17 AM   #5
rob11715
LQ Newbie
 
Registered: Mar 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks. I figured out the easiest way to fix this is not to fix it at all. I'm just going give every account the same password. The Windows server admin just needs to add a password to their 'net use' command. It also adds a slight bit more security if someone unauthorized managed to get into their network. Right now the only security is the shares are restricted by subnet.

The proper way to do this would be to just use Windows domain credentials. The problem is this type of change could end up being a long drawn out process with this particular department (long story as to why).
 
  


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
SLES 10.1 Samba 3.0 unable to confirm encrypt passwords = yes with testparam rayman1163 SUSE / openSUSE 0 05-14-2009 07:03 PM
updating samba passwords with system passwords paranoid times Linux - Software 3 10-03-2006 09:04 PM
3D acceleration YES YES YES glxgears results props666999 Slackware 44 07-29-2005 08:40 PM
Yes Yes Yes! I Got Sound! shazam75 LinuxQuestions.org Member Success Stories 2 10-14-2004 04:11 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM

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

All times are GMT -5. The time now is 03:40 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