LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2018, 02:37 PM   #1
A_UK_LinuxUser
LQ Newbie
 
Registered: Jul 2018
Posts: 6

Rep: Reputation: Disabled
Samba: after update from Mint 18.3 to 19, Windows cannot access Samba shares


Windows 8.1 x64
Linux Mint x64 Cinnamon
Samba 4.7.6

The Windows machine and the Linux machine can ping each other, both by (static) IP and by hostname.

Windows opens a credentials window for each of the Linux samba shares, but rejects any credentials I supply.

I have this in log.samba:

Code:
[2018/07/08 17:51:23.534753,  0] ../source4/smbd/server.c:448(binary_smbd_main)
  samba version 4.7.6-Ubuntu started.
  Copyright Andrew Tridgell and the Samba Team 1992-2017
[2018/07/08 17:51:23.561679,  0] ../source4/smbd/server.c:600(binary_smbd_main)
  At this time the 'samba' binary should only be used for either:
  'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
  You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/07/08 17:51:23.561859,  0] ../lib/util/become_daemon.c:111(exit_daemon)
  STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
I have a VPN on each machine, and a software firewall on each machine (and a Router firewall, and an ISP firewall) but I have the problems even with most of that (VPNs, software firewalls, router firewall) disabled.

I'd really appreciate any help.
 
Old 07-08-2018, 08:25 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,346
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Quote:
[2018/07/08 17:51:23.561679, 0] ../source4/smbd/server.c:600(binary_smbd_main)
At this time the 'samba' binary should only be used for either:
'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2018/07/08 17:51:23.561859, 0] ../lib/util/become_daemon.c:111(exit_daemon)
STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Are you using active directory?

What are the contents of /etc/samba/smb.conf?

Are the shared directories properly configured to be shared?

Samba error 22 means Samba is misconfigured: https://askubuntu.com/questions/4270...valid-argument

Please surround any terminal output with "code" tags, which become available when you click the "Go Advanced" button beneath the "compose post" window.

Last edited by frankbell; 07-08-2018 at 08:30 PM. Reason: more info
 
Old 07-08-2018, 08:31 PM   #3
A_UK_LinuxUser
LQ Newbie
 
Registered: Jul 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you for the reply.

> Are you using active directory?
No - the error I reported seemed to suggest I should be. But that error has no disappeared, to be replaced by one that complains about being unable to 'sync browser lists', though the problem is intermittent and may be unrelated to the lack of connection that I reported.

What are the contents of /etc/samba/smb.conf? Here.

> Are the shared directories properly configured to be shared?

Well, the single user the smb.conf file assigns to them does have full rights over them.

> Samba error 22 means Samba is misconfigured: https://askubuntu.com/questions/4270...valid-argument

Investigating now.
 
  


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
[SOLVED] cant access samba shares on windows zhen_khokh Linux - Server 1 03-12-2015 04:15 AM
Can't access samba shares from Windows SuperNate Linux - Networking 2 03-10-2009 10:38 PM
Cant access windows shares from SuSe 9.1pro Samba dazzyboi Linux - Newbie 2 07-26-2004 03:17 PM
Cant Access Windows 2003 Server Shares Thru Samba tobias_r33per Linux - Software 4 05-22-2004 10:54 PM
Can't access samba shares from windows nuzzy Linux - Software 2 07-17-2002 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:23 PM.

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