[Samba] test share works, but homes returns with network name cannot be found

2007-06-05 Thread steve roush
I just encountered the same problem and solved it (with the help of 
Google).  SELinix was preventing samba to work as I wanted.   Here is a 
way to check if this is the problem, and to fix it:

- run the program system-config-securitylevel
- click on the SELinix tab
- if it says enforcing
 - either turn off SELinix by changing enforcing to disabled
 - or click on modify SELinix Policy, Samba, and Allow Samba to 
share users home directories

- kill your current smbd and nmbd processes
- service smb restart

With luck, samba will be running as you wanted.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] test share works, but homes returns with network name cannot be found

2007-04-26 Thread Dan Roberts


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. 

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
-
[EMAIL PROTECTED] 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.c:process_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

[EMAIL PROTECTED] samba]# smbclient -L localhost -U%
Domain=[DJ14847] OS=[Unix] Server=[Samba 3.0.23c-2]

   Sharename   Type  Comment
   -     ---
   testDisk  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)


   WorkgroupMaster
   ----
   DJ14847  TRAILRUNNER
   KUTAKDN-ROBERTS-5898
[EMAIL PROTECTED] samba]#
---

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