LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-08-2013, 03:44 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Rep: Reputation: 32
smbtree displays nothing


I'm trying to set up a simple file share.

I do smbtree and it returns nothing. smbtree -d3 returns:

Code:
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
interpret_interface: Adding interface 192.168.0.1/255.255.255.0
added interface 192.168.0.1/255 ip=192.168.0.1 bcast=192.168.0.255 netmask=255.255.255.0
Enter root's password:
Connecting to 192.168.0.100 at port 445
Doing spnego session setup (blob length=74)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178@please_ignore
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
SPNEGO login failed: Logon failure
Connecting to 192.168.0.100 at port 445
Doing spnego session setup (blob length=74)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=not_defined_in_RFC4178@please_ignore
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
SPNEGO login failed: Logon failure
smbstatus shows no shares.

testparm -s returns:

Code:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[misc]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
        workgroup = WORKGROUP
        server string = blah
        interfaces = 192.168.0.1/255.255.255.0
        smb passwd file = /etc/samba/passwd_smb
        name resolve order = hosts, lmhosts, bcast
        winbind use default domain = Yes
        idmap config * : backend = tdb
        valid users = me, you
        guest ok = Yes

[misc]
        comment = blah
        path = /home/misc
What's "idmap config * : backend = tdb"? Is that some new implementation in samba version 4? I've only used 2 and 3. Googleing it seems to have something to do with winbind, but I'm still fuzzy on what it's doing exactly.

The main issue here is that I do not have access to my files on my windows computer. net view <linux smb server> returns:

Code:
System error 53 has occurred.

The network path was not found.
I can ping both PCs from the other with IP address and netbios name.

How do I get access to my file share?

Thanks.

Last edited by hedron; 12-08-2013 at 03:49 PM.
 
Old 12-08-2013, 06:02 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
*Edit ignore

Last edited by dive; 12-08-2013 at 06:04 PM.
 
Old 12-08-2013, 07:13 PM   #3
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,309

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
The following works for me, maybe compare to your /etc/samba/smb.conf.

You did smbpasswd -a user?

[global]
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
encrypt passwords = true
passdb backend = tdbsam:/etc/samba/private/passdb.tdb
workgroup = WHUTEVA
netbios name = slckwr
server string = samba
hosts deny = all
hosts allow = 127.0.0.1 192.168.0.0/24
security = user
map to guest = bad user
guest account = nobody
socket options = IPTOS_LOWDELAY TCP_NODELAY
local master = no
preferred master = no
domain master = no
bind interfaces only = true
interfaces = eth0 192.168.0.111
smb ports = 137 138 139
load printers = no
printing = bsd
printcap name = /dev/null

[slckwr]
comment = slckwr
path = /home/user
guest ok = no
writable = yes
valid users = user
invalid users = root bin daemon nobody named sys tty disk mem kmem users
 
Old 12-08-2013, 08:02 PM   #4
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Original Poster
Rep: Reputation: 32
Yea, I did smbpasswd -a <user>

I tried your configuration and it didn't work for me. Thanks though. Mine is:

Code:
[global]
workgroup=faerun
browseable=yes
netbios name=luskan
server string=blah
valid users=jack
interfaces=eth0
;interfaces=192.168.0.1/255.255.255.0
guest ok=yes
security=user
encrypt passwords=yes
smb passwd file=/etc/samba/passwd_smb
name resolve order=hosts lmhosts bcast
winbind use default domain=yes

server string=samba
local master=yes
domain master=no
bind interfaces only=yes
smb ports=137 138 139
passdb backend=tdbsam:/etc/samba/private/passdb.tdb
load printers=no

[misc]
path=/home/misc
comment=blah
guest ok=yes
browseable=yes


Interesting, maybe I was doing smbtree wrong, as I was doing to with root. When I logged in on my linux box as user, then it returned:

Code:
jack@luskan:~$ smbtree
Enter jack's password:
FAERUN
        \\LUSKAN                        samba
                \\LUSKAN\IPC$                   IPC Service (samba)
                \\LUSKAN\misc                   blah
smbstatus as user:

Code:
Samba version 4.1.0
PID     Username      Group         Machine
-------------------------------------------------------------------
Failed to initialize session_global: NT_STATUS_ACCESS_DENIED

Service      pid     machine       Connected at
-------------------------------------------------------
Failed to initialize session_global: NT_STATUS_ACCESS_DENIED
Failed to traverse sessions: NT_STATUS_ACCESS_DENIED

No locked files
The windows machine still give the same error 53.
 
Old 12-09-2013, 06:43 PM   #5
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware64-multilib 15.0, SARPI, artix
Posts: 401

Original Poster
Rep: Reputation: 32
Well, the main issue was that I didn't have some windows services running. Computer Browser and TCP/IP Netbios helper, in case you're wondering.

smbtree wasn't showing in linux because it only shows what the user can access. I didn't realize that running it as root was pointless, since I didn't enable any shares for root.

So, thanks to anyone who responded or scratched their head at my problem.
 
  


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] less displays binary but cat displays ascii? ahtoot Linux - Newbie 3 01-25-2011 08:38 PM
Dual monitors, separate X displays; want firefox in both displays bforbes Linux - Desktop 7 10-15-2008 09:26 PM
Where is smbtree? AlaskanWolf DamnSmallLinux 1 12-03-2007 05:48 PM
smbtree does not display myself Ygrex Linux - Networking 0 10-30-2005 06:54 AM
smbtree problem bruse Linux - Networking 3 03-28-2005 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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