Web lists-archives.com

Re: [Samba] weird log file ???





---- On Wed, 06 Sep 2017 14:34:27 -0700 toddandmargo via samba  wrote ---- 
>
>
>---- On Wed, 06 Sep 2017 14:11:54 -0700 Rowland Penny via samba<samba@xxxxxxxxxxxxxxx> wrote ---- 
> > On Wed, 06 Sep 2017 13:32:39 -0700
> > toddandmargo via samba <samba@xxxxxxxxxxxxxxx> wrote:
> > 
> > > 
> > > [global]
> > > workgroup = xxxxx
> > > server string = Fedora Samba Server
> > > volume = Fedora Core, %v
> > > comment = Samba (NetBIOS) Server on FedoraServer.xxxxx.com
> > > netbios name = FedoraServer
> > > netbios aliases = PlaceJokeHere
> > > interfaces = eno1 127.0.0.1
> > > hosts deny = ALL
> > > hosts allow = 192.168.255. 127.0.0.
> > > lanman auth = yes
> > > ntlm auth = yes
> > > printcap name = /etc/printcap
> > > show add printer wizard = No
> > > load printers = yes
> > > printing = BSD
> > > guest account = pcguest
> > > log file = /var/log/samba/samba-log.%m
> > > log level = 4 passdb:10 auth:10
> > > strict locking = no
> > > follow symlinks = yes
> > > wide links = no
> > > locking = yes
> > > strict locking = no
> > > security = user
> > > smb passwd file = /etc/samba/smbpasswd
> > > unix password sync = Yes
> > > passwd program = /usr/bin/passwd %u
> > > passdb backend = smbpasswd
> > > local master = yes
> > > os level = 75
> > > domain master = yes 
> > > domain logons = yes
> > > idmap config * : backend = tdb
> > > idmap config * : range = 1000000-1999999
> > > logon script = scripts&#92;logon.bat
> > > logon path =
> > > logon drive = X:
> > > preferred master = yes
> > > wins support = yes
> > > name resolve order = host wins
> > > dns proxy = yes
> > > deadtime = 20160
> > > force create mode = 0000
> > > create mode = 0777
> > > force directory mode = 0000
> > > directory mode = 0777
> > > map archive = yes
> > > map system = yes
> > > map hidden = yes
> > > 
> > > 
> > > [public]
> > > comment = Public on xxxx FedoraServer -- Mount as F:
> > > path = /exports/public
> > > valid users = @users
> > > write list = @users
> > > force group = users
> > > force user = public
> > > 
> > > locking = yes
> > > oplocks = no
> > > fake oplocks = no
> > > level2 oplocks = no
> > > strict locking = no
> > > blocking locks = no
> > > public = no
> > > writable = yes
> > > printable = no
> > > browseable = yes
> > > 
> > > create mode = 0777
> > > force directory mode = 0000
> > > directory mode = 0777
> > > map archive = yes
> > > map system = yes
> > > map hidden = yes
> > > 
> > 
> > If you remove the default lines and lines that shouldn't be there, your
> > PDC smb.conf will look like this:
> > 
> > [global]
> > workgroup = xxxxx
> > security = user
> > netbios name = FedoraServer
> > netbios aliases = PlaceJokeHere
> > server string = Fedora Samba Server
> > interfaces = eno1 127.0.0.1
> > hosts deny = ALL
> > hosts allow = 192.168.255. 127.0.0.
> > lanman auth = yes
> > ntlm auth = yes
> > printcap name = /etc/printcap
> > show add printer wizard = No
> > load printers = yes
> > printing = BSD
> > guest account = pcguest
> > log file = /var/log/samba/samba-log.%m
> > log level = 4 passdb:10 auth:10
> > smb passwd file = /etc/samba/smbpasswd
> > unix password sync = Yes
> > passwd program = /usr/bin/passwd %u
> > passdb backend = smbpasswd
> > local master = yes
> > os level = 75
> > domain master = yes 
> > domain logons = yes
> > idmap config * : backend = tdb
> > idmap config * : range = 1000000-1999999
> > logon script = scripts&#92;logon.bat
> > logon path =
> > logon drive = X:
> > preferred master = yes
> > wins support = yes
> > name resolve order = host wins
> > deadtime = 20160
> > 
> > [public]
> > comment = Public on xxxx FedoraServer -- Mount as F:
> > path = /exports/public
> > valid users = @users
> > write list = @users
> > force group = users
> > force user = public
> > oplocks = no
> > level2 oplocks = no
> > strict locking = no
> > blocking locks = no
> > public = no
> > writable = yes
> > create mode = 0777
> > directory mode = 0777
> > map system = yes
> > map hidden = yes
> > 
> > Don't think doing this though will fix your problem.
> > Did the log entries start recently ?, or have they always been there (it
> > sounds like they started recently). If they started recently, has
> > anything changed ? software updates etc
> > 
> > From the log fragment, you seem to be using '.local' (unless this is
> > sanitisation) if so what is the 'hosts' line in /etc/hosts ? does it
> > reference msdns, if it does, removing this may fix your problem.
> > 
> > Rowland
>
>.local is correct. the xxxx is the sanitation
>
>What changed was that a stinkin' Western Digital SATA hard drive did not
>support hot swap, corrupted my os, and I had to reinstall Fedora 26.
>I wsas out till 06:00 in the morning repairing everything. Needless
>to say, WD is on my poop list !!!!!!!!!!
>
>Everything worked afterwards, except this scanner.
>
>yes, I always get the log files. i want them to help me troubleshoot.
>
>the only weird one is the ___________ which only appears when the
>scanner tries to attach.
>
>This entry had got my attention:
># grep -i ____ samba-log.192.168.255.21
> netbios connect: local=fedoraserver remote=______________________________, name type = 0
>
>"remote" what ????
>
># cat /etc/hosts
>127.0.0.1 FedoraServer.xxxx.local FedoraServer localhost localhost.localdomain localhost4 localhost4.localdomain4
>::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
># 192.168.255.21 XRX0000AADB824D.xxxx.local XRX0000AADB824D
>
>
>the .21 entry without with the comment mark makes no difference


okay, I figured out a workaround.

I set the scanner's smb time out from 5 seconds to 20 seconds.  Now it scans.

Why is samba so slow  connecting?


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba