LinuxQuestions.org
Review your favorite Linux distribution.
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 12-13-2019, 03:49 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Having trouble mounting no password Samba share from Windows


I am configuring a new samba share on a new Linux host. Linux version Slackware64 14.2, kernel 4.4.202, Samba version 4.6.16.

Below is my smb.conf which is slightly (I think) modified from a working version on a different Linux host. The config does not require authentication.
Code:
# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[database]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        server string = HPRS database Server
        log file = /var/log/samba.%m
        max log size = 50
        disable spoolss = Yes
        load printers = No
        printcap name = /dev/null
        guest account = guest
        map to guest = Bad User
        security = USER
        dns proxy = No
        idmap config * : backend = tdb
        printing = bsd
        hosts allow = 192.168.0 127.


[database]
        comment = OHPRS SQL Server database files
        path = /home/SQLserver
        create mask = 0660
        directory mask = 0771
        guest ok = Yes
        guest only = Yes
        read only = No
When I try to map this from a Windows 7 computer, I get the error: "The mapped network drive could not be created because the following error has occured: The specified server cannot perform the requested operation."

The last few lines of /var/log/samba.smdb have:
Code:
[2019/12/13 18:08:22.597654,  0] ../lib/util/access.c:361(allow_access)
  Denied connection from 192.168.0.4 (192.168.0.4)
[2019/12/13 18:08:22.597746,  1] ../source3/smbd/process.c:3820(smbd_add_connection)
  Connection denied from ipv4:192.168.0.4:49524 to ipv4:192.168.0.6:445
:
:
2019/12/13 18:08:22.598211,  5] ../libcli/security/security_token.c:53(security_token_debug)
  Security token: (NULL)
[2019/12/13 18:08:22.598228,  5] ../source3/auth/token_util.c:640(debug_unix_user_token)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2019/12/13 18:08:22.598269,  5] ../source3/smbd/uid.c:425(smbd_change_to_root_user)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2019/12/13 18:08:22.598440,  3] ../source3/smbd/server_exit.c:242(exit_server_common)
  Server exit (connection denied)
There's lots of verbiage in the log output, but I don't see anywhere that it says "why" the connection is denied.

I've tried giving the target shared folder write-all permission. Nope.

What am I doing wrong?

Last edited by mfoley; 12-13-2019 at 04:14 PM.
 
Old 12-13-2019, 04:18 PM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Never mind! I found the answer here: https://www.linuxquestions.org/quest...chines-935263/. My hosts allow line was missing the dot '.' after the 192.168.0. Should have been:

hosts allow = 192.168.0. 127.

Fixing that worked!
 
  


Reply

Tags
config, samba, share



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
Samba Share Trouble Mounting From OS X devinmcelheran Linux - Server 7 02-03-2014 08:50 PM
Mounting Samba share results in network timeout at password prompt (Slackware 12.2) sysfce2 Linux - Newbie 1 10-25-2009 05:43 AM
I'm having trouble mounting smb share in linux... trist007 Linux - Newbie 3 03-24-2009 08:37 AM
Trouble mounting Samba share from Windows Mobile 6.1 - samba weirdness cleidh_mor Linux - Server 0 09-21-2008 02:43 PM
Samba > Trouble mounting remote NTFS share Harlin Linux - Software 6 06-20-2005 07:07 PM

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

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