LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-26-2007, 10:22 PM   #1
spiff28088
LQ Newbie
 
Registered: Jan 2003
Distribution: RedHat 8
Posts: 7

Rep: Reputation: 0
Samba test share works, but homes returns with "network name cannot be found


Just built a new server based on CentOS 5.0 which included Samba 3.0232. I also added Webmin as the server is in the closet without a monitor currently.

When I went thorugh the generla tutorial with Webmin Samba worked, but showed all root directories, except for /home. That was not as expected and certainly not very helpful.

So, I went back and tried again baseed on what I had used in the past on the old server. Whetehr I have the ";" lines active or inactive the result is the same.

I have set up the test share directory and can connect to it without problem from either my desktop Win2000 system or my MacBook Pro. I don't have a printer on this server, having switched over to a jetdirect card, but I do see the "Printers" icon in the list at least on the Windows.

My home directory is another matter - I can see it and it has the proper comment attached, but any attempt to connect from Win2000 results in a popup window. I get rejected from the Mac too, but of course don't get the Windows popup window.
As the Windows popup window actually says something, here it is - top line is the banner
--------------
\\Trailrunner
\\Trailrunner\dan is not accessable.
The network name cannot be found.
---------------
Googeling on this has lead me to various old postings but nothing directly on point, and the bid difference I seem to have is that I can indeed get to the test share, copy in files etc... without problem.

What follows are the core entries of my smb.conf file, the notations from the log file and the results of what seem to be key tests.

Truly hope someone can help me get this sorted out.

smb.conf
#======================= Global Settings =====================================
[global]
log file = /var/log/samba/%m.log
dns proxy = no
; passwd chat = *Enter\snew\sUNIX:* %n\n *Retype\spassword:* %n\n
server string = Trailrunner, Samba %v on (%L)
; unix password sync = yes
remote announce = 10.20.30.255
workgroup = DJ14847
os level = 20
encrypt passwords = Yes
security = user
; passwd program = /usr/bin/passwd %u
max log size = 50
allow hosts = 10.20.30. 127.0.0.1
log level = 3
socket options = TCP_NODELAY IPTOS_LOWDELAY
wins support = yes
netbios name = trailrunner



#============================ Share Definitions ==============================
[homes]
comment = %U's Home Directory is %H
valid users = %S
; path = %H
read only = no
browsable = no
create mask = 0755
directory mask = 0755

[test]
comment = for testing purposes only
path = /export/test
read only = no
public = yes

-----------

From the /var/log/samba/ tial superspiff.log file
---------
[root@trailrunner samba]# tail superspiff.log
[2007/04/26 19:11:30, 3] smbd/error.c:error_packet(146)
error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
[2007/04/26 19:11:30, 3] smbd/process.crocess_smb(1110)
Transaction 27 of length 43
[2007/04/26 19:11:30, 3] smbd/process.c:switch_message(914)
switch message SMBulogoffX (pid 3764) conn 0x0
[2007/04/26 19:11:30, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/26 19:11:30, 3] smbd/reply.c:reply_ulogoffX(1618)
ulogoffX vuid=105
---------

Testing locally wiht smbclient
----------------
[root@trailrunner samba]# smbclient -L localhost -U%
Domain=[DJ14847] OS=[Unix] Server=[Samba 3.0.23c-2]

Sharename Type Comment
--------- ---- -------
test Disk for testing purposes only
IPC$ IPC IPC Service (Trailrunner, Samba 3.0.23c-2 on (trailrunner))
Domain=[DJ14847] OS=[Unix] Server=[Samba 3.0.23c-2]

Server Comment
--------- -------
DANS-MAC Dan's Mac
SUPERSPIFF TECRA TRAILRUNNER Trailrunner, Samba 3.0.23c-2 on (trailrunner)

Workgroup Master
--------- -------
DJ14847 TRAILRUNNER
KUTAK DN-ROBERTS-5898
[root@trailrunner samba]#
-------------------
 
Old 04-27-2007, 01:20 PM   #2
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
Did it ask you to login? Have you tried doing it manually from a command line in windows:

Code:
net use \\sambaserver\ipc$ /user:username
 
Old 04-27-2007, 04:14 PM   #3
spiff28088
LQ Newbie
 
Registered: Jan 2003
Distribution: RedHat 8
Posts: 7

Original Poster
Rep: Reputation: 0
Hi - thanks for responding

On Trailrunner (the new box with Samba)
net use \\trailruner\ipc$ /user:dan
returns an error "no command use:" and a list of "net ***" options that donesn't include "use".

I did try the following though:
----
[dan@trailrunner samba]$ smbclient //trailrunner/ipc$ /user:dan
session setup failed: NT_STATUS_LOGON_FAILURE
[dan@trailrunner samba]$ smbclient //trailrunner/ipc$
Password:
Domain=[TRAILRUNNER] OS=[Unix] Server=[Samba 3.0.23c-2]
smb: \> quit
[dan@trailrunner samba]$ smbclient //trailrunner/ipc$
Password:
Domain=[TRAILRUNNER] OS=[Unix] Server=[Samba 3.0.23c-2]
smb: \> ls
do_list: [\*] NT_STATUS_NETWORK_ACCESS_DENIED
Error in dskattr: NT_STATUS_NETWORK_ACCESS_DENIED
smb: \> quit
----
while the first attempt failed, the second worked just fine - tried again with an 'ls' just to see what it would do.

However, if I change the share from ipc$ to what should be my home directory, I then get the following:
----
[dan@trailrunner samba]$ smbclient //trailrunner/home/dan
Password:
Domain=[TRAILRUNNER] OS=[Unix] Server=[Samba 3.0.23c-2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
----

However when I try for the test share that I know works through Explorer and Finder I get the following - note please the change in the Domain between Trailrunner and DJ14847 depending on whether I log in with my password or hit enter to be anonomous. Not sure why it does that, or even if it should do that.
--------
Domain=[TRAILRUNNER] OS=[Unix] Server=[Samba 3.0.23c-2]
smb: \> quit
[dan@trailrunner samba]$ smbclient //trailrunner/test
Password:
Anonymous login successful
Domain=[DJ14847] OS=[Unix] Server=[Samba 3.0.23c-2]
smb: \> exit
---------

With respect to the attempt to join as me to my home directory, the log file shows the following:
------
[2007/04/27 15:12:44, 3] smbd/service.c:find_service(252)
checking for home directory home/dan gave (NULL)
[2007/04/27 15:12:44, 3] smbd/service.c:find_service(316)
find_service() failed to find service home/dan
[2007/04/27 15:12:44, 0] smbd/service.c:make_connection(1102)
trailrunner (10.20.30.45) couldn't find service home/dan
[2007/04/27 15:12:44, 3] smbd/error.c:error_packet(146)
error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
------

Why it can't find my home directory is a mystery to me.

It just occured to me that perhaps 'net use' is a windows operation and that you intended me to try this from the windows system - will try when I get home (vpn currently in use from the office so I have command line access), but as the login on the system iteself returns an error, I suspect that the login from the desktop at home will as well.

In answer to your question about asking for a login - on the Windows 2000 system, since I am "dan" on that one, it doesn't ask, but on the Mac, when I blow away the alias that doesn't work it does give me the chance to re-enter it.

The password is correct and I have set it up, removed it, and set it up again via smbpassword and through webmin to select makind samba users from the known unix users. either way the problem percists.
 
Old 04-27-2007, 05:05 PM   #4
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 306

Rep: Reputation: 32
Quote:
[homes]
comment = %U's Home Directory is %H
valid users = %S
; path = %H
read only = no
browsable = no
create mask = 0755
directory mask = 0755
I had to find out that samba only reliably ignores code if at least one line before and after also start with # or ; .....

Now to your home-share problem.

you try to connect to //trailrunner/home/dan, which does not exist !
the share is "homes" !

if you connect to //trailrunner/homes as user dan, the path will be set accourding to %H
so //trailrunner/homes on your windows box will be translated to e.g. /home/dan on your samba server.

in case you fancy a homes folder with all user folders visible you should replace %H with "/home".
 
Old 04-27-2007, 06:22 PM   #5
spiff28088
LQ Newbie
 
Registered: Jan 2003
Distribution: RedHat 8
Posts: 7

Original Poster
Rep: Reputation: 0
Ok -

So I have killed all the lines that had ";" in them.

Embarrassed that I didn't catch my own typing difficulty with "home" vs "homes" - ok, so tried that and life is still not wonderful in the world of Samba on Trailrunner.

[dan@trailrunner samba]$ smbclient //trailrunner/homes
Password:
Domain=[TRAILRUNNER] OS=[Unix] Server=[Samba 3.0.23c-2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

Looking into the log file it looks like there are actually two problems - the first is telling me that the connection was denied because I don't ahve permission. But I should - certaily I can do whatever I want in my home directory as me. I have tried to use both Webmin's Samba utilities and smbpasswd to generate an appropriate key, and I believe I have the proper statements up above in my smb.conf file

The second is my BAD NETWORK NAME issue -
[2007/04/27 17:20:36, 0] smbd/service.c:make_connection_snum(911)
'/home/dan' does not exist or permission denied when connecting to [dan] Error was Permission denied
[2007/04/27 17:20:36, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/27 17:20:36, 3] smbd/connection.c:yield_connection(69)
Yielding connection to dan
[2007/04/27 17:20:36, 3] smbd/error.c:error_packet(146)
error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
[2007/04/27 17:20:36, 3] smbd/process.c:timeout_processing(1359)
 
Old 04-28-2007, 10:38 AM   #6
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 306

Rep: Reputation: 32
did you add samba-users ? (smbpasswd / pdbedit)
 
Old 04-28-2007, 07:25 PM   #7
spiff28088
LQ Newbie
 
Registered: Jan 2003
Distribution: RedHat 8
Posts: 7

Original Poster
Rep: Reputation: 0
Hi back -

Yes there are samba users - but as I understand it smbuser is really not where these are, it is smbpasswd.

[root@trailrunner samba]# cat smbusers
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
[root@trailrunner samba]#

What I have in smbpasswd is: (encoded passwords removed of course)
[root@trailrunner samba]# cat smbpasswd
dan:500:################................:[U ]:LCT-46314595:
jill:501:################................:[U ]:LCT-4630C1E4:
jhrobert:502:################................:[U ]:LCT-4630C1F4:
[root@trailrunner samba]#

I have tried a few things with smb.conf, but still to no benefit. The current code is:
---------------
#============================ Global Definitions ==============================
[global]
log file = /var/log/samba/%m.log
dns proxy = no
server string = Trailrunner, Samba %v on (%L)
remote announce = 10.20.30.255
workgroup = DJ14847
os level = 20
encrypt passwords = Yes
smb passwd file = /etc/samba/smbpasswd
security = user
max log size = 50
allow hosts = 10.20.30. 127.0.0.1
log level = 3
socket options = TCP_NODELAY IPTOS_LOWDELAY
wins support = yes
netbios name = trailrunner
load printers = no
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts

#============================ Share Definitions ==============================
[homes]
comment = %U's Home Directory is %H
read only = no
browsable = no
create mask = 0755
directory mask = 0775

[test]
comment = for testing purposes only
path = /export/test
read only = no
public = yes
--------------------

I still get the same error when attempting to connect via Win2000 explorer to my home directory on Trailrunner.
---------
[2007/04/28 18:23:42, 0] smbd/service.c:make_connection_snum(911)
'/home/dan' does not exist or permission denied when connecting to [dan] Error was Permission denied
[2007/04/28 18:23:42, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2007/04/28 18:23:42, 3] smbd/connection.c:yield_connection(69)
Yielding connection to dan
[2007/04/28 18:23:42, 3] smbd/error.c:error_packet(146)
error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME
---------

Boy this is frustrating - it's truly got to be something simple, but I haven't a clue as to what.
 
Old 05-01-2007, 08:34 AM   #8
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
What are the permissions on /home/dan on the fileserver? Does the directory exist(as the error message implies it doesn't, or that the smb process can't access it.
 
Old 05-01-2007, 10:13 AM   #9
spiff28088
LQ Newbie
 
Registered: Jan 2003
Distribution: RedHat 8
Posts: 7

Original Poster
Rep: Reputation: 0
Hi back

Permissions are good and both directories definately exist.
For the home directory:
drwxr-xr-x 18 dan dan 4096 Apr 30 19:41 dan

for the test share /export/test
drwxrwxrwx 2 root root 4096 Apr 29 15:15 test

I have tried to start again from scratch and have simplified the smb.conf file - but with even less success now - can copy into the test directory, but can't do anything else.

The suggestion was made that I may have an issue with SElinux - and I need to set time asside to go figure that out.


global]
log file = /var/log/samba/%m.log
server string = Trailrunner, Samba %v on (%L)
remote announce = 10.20.30.255
workgroup = DJ14847
encrypt passwords = Yes
security = user
max log size = 50
allow hosts = 10.20.30. 127.0.0.1
log level = 3
browsable = yes
local master = yes

[homes]
guest ok = no
browsable = no

[temp]
comment = temp test directory
writeable = yes
browsable = yes
public = yes
path = /sambatest

[test]
comment = for testing purposes only
path = /export/test
writeable = yes
read only = no
public = yes


nmblookup -B returns rather odd results - and I am not sure how to resolve this issue.
[root@trailrunner samba]# nmblookup -B trailrunner _ _SAMBA_ _
added interface ip=10.20.30.45 bcast=10.20.30.255 nmask=255.255.255.0
Socket opened.
querying _ on 216.150.192.190
name_query failed to find name _
querying _SAMBA_ on 216.150.192.190
name_query failed to find name _SAMBA_
querying _ on 216.150.192.190
name_query failed to find name _
[root@trailrunner samba]# nmblookup -B 10.20.30.45 _ _SAMBA_ _
added interface ip=10.20.30.45 bcast=10.20.30.255 nmask=255.255.255.0
Socket opened.
querying _ on 10.20.30.45
name_query failed to find name _
querying _SAMBA_ on 10.20.30.45
name_query failed to find name _SAMBA_
querying _ on 10.20.30.45
name_query failed to find name _
[root@trailrunner samba]#

Despite the above issue with nmblookup, if I type in smbclient -L 10.20.30.45 -N I get
[root@trailrunner samba]# smbclient -L 10.20.30.45 -N
Anonymous login successful
Domain=[DJ14847] OS=[Unix] Server=[Samba 3.0.23c-2.el5.2]

Sharename Type Comment
--------- ---- -------
temp Disk temp test directory
test Disk for testing purposes only
IPC$ IPC IPC Service (Trailrunner, Samba 3.0.23c-2.el5.2 on (trailrunner))
Anonymous login successful
Domain=[DJ14847] OS=[Unix] Server=[Samba 3.0.23c-2.el5.2]

Server Comment
--------- -------
TRAILRUNNER Trailrunner, Samba 3.0.23c-2.el5.2 on (trailrunn

Workgroup Master
--------- -------
DJ14847
But if I try with 'trailrunner' in place of 10.20.30.45 it times out.

I can see the shares though - but I have no luck at all attempting to connect to my home directory - my test directories are also not working quite right. The permissions for each are as follows (yes I set rights to 777 for testing purposes)
for [temp] path = /sambatest
drwxrwxrwx 2 root root 4096 Apr 29 15:40 sambatest
for [test] path = /export/test
drwxrwxrwx 2 root root 4096 Apr 29 15:15 test

I can copy files into [test] or into [temp] but I can't copy anything from either share back to my Win2000 workstation or my Apple MacBook. I also can't delete anything or open anything, or copy (drag and drop) between the shares.

Say I try and copy a file "wdw rates.pdf" between them - then I get the following:
[2007/04/29 15:44:41, 3] smbd/trans2.c:call_trans2qfilepathinfo(2908)
call_trans2qfilepathinfo: TRANSACT2_QPATHINFO: level = 1004
[2007/04/29 15:44:41, 3] smbd/msdfs.c:dfs_redirect(435)
dfs_redirect: Not redirecting Trailrunner/test/Trailrunner/test/WDW rates.pdf.
[2007/04/29 15:44:41, 3] smbd/msdfs.c:dfs_redirect(439)
dfs_redirect: Path converted to non-dfs path Trailrunner/test/WDW rates.pdf
[2007/04/29 15:44:41, 3] smbd/error.c:error_packet(146)
error packet at smbd/trans2.c(2919) cmd=50 (SMBtrans2) NT_STATUS_OBJECT_PATH_NOT_FOUND
[2007/04/29 15:44:41, 3] smbd/process.crocess_smb(1110)
Transaction 267 of length 152
[2007/04/29 15:44:41, 3] smbd/process.c:switch_message(914)
switch message SMBntcreateX (pid 6008) conn 0x9755c80
[2007/04/29 15:44:41, 3] smbd/msdfs.c:dfs_redirect(435)
dfs_redirect: Not redirecting Trailrunner/test/WDW rates.pdf.
[2007/04/29 15:44:41, 3] smbd/msdfs.c:dfs_redirect(439)
dfs_redirect: Path converted to non-dfs path WDW rates.pdf
[2007/04/29 15:44:41, 3] smbd/dosmode.c:unix_mode(147)
unix_mode(WDW rates.pdf) returning 0744
[2007/04/29 15:44:41, 3] smbd/open.cpen_file(278)
Error opening file WDW rates.pdf (Permission denied) (local_flags=0) (flags=0)
[2007/04/29 15:44:41, 3] smbd/error.c:unix_error_packet(90)
unix_error_packet: error string = Permission denied
[2007/04/29 15:44:41, 3] smbd/error.c:error_packet(146)
error packet at smbd/trans2.c(2682) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA Configuration Issue: "Network path was not found" on client gerhardbartsch Linux - Networking 4 04-03-2007 02:40 PM
Samba configuration error when accessing NTFS files " Network path not found" leo_ieo Linux - General 2 10-09-2006 08:55 PM
Samba: "homes" share, cannot create directories, can create files Herg Linux - Software 1 09-14-2006 08:48 AM
executing a loaded module returns "command not found" error neelay1 Linux - Software 1 05-08-2006 02:25 PM
Samba & Win2K pro, "network path not found" RedHat123 Linux - Networking 8 02-05-2002 09:57 PM


All times are GMT -5. The time now is 08:46 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration