You are not logged in.

#1 2007-11-29 10:18:43

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Samba share not working: NT_STATUS_BAD_NETWORK_NAME error

Here's my smb.conf:

[global]
   workgroup = MSHOME
   server string = smbspork
   security = user

;   hosts allow = 192.168.1. 192.168.2. 127.

   load printers = yes
;   printcap name = /etc/printcap
;   printcap name = lpstat
;   printing = cups

   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy = no 

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = no

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes

[music]
path = /home/xelados/music/
browseable = yes
read only = yes

Here's what I get from smbclient: (Note that I have tried both my hostname and my internal IP)

xelados@sporkbox: ~ $ smbclient //sporkbox/
Password: 
Anonymous login successful
Domain=[MSHOME] OS=[Unix] Server=[Samba 3.0.27a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

After that, it just exits. I've checked the wiki for information setting it up, but it didn't cover this issue. Google didn't give me anything useful, either.

Offline

#2 2008-09-30 13:54:00

greyarea
Member
Registered: 2008-09-30
Posts: 10

Re: Samba share not working: NT_STATUS_BAD_NETWORK_NAME error

Thread necromancy but I just came across a similar problem.

I couldn't share /home/greyarea/music

[music]
  path = /home/greyarea/music
  comment = Music Library
  browseable = yes
  read only = yes
  guest ok = yes
  public = yes
$ smbclient //HOSTNAME/music
Password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.31]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

This failed (I think) due to permissions to do with /home/greyarea/music being in /home

I managed to work around this by mounting the music dir in another place:

# mkdir /media/musicbind 
# mount --bind /home/greyarea/music /media/musicbind
[music2]
path = /media/musicbind
read only = yes
public = yes
$ smbclient //HOSTNAME/music2
Password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.31]
Server not using user level security and no password supplied.
smb: \>

Job done. smile

Offline

Board footer

Powered by FluxBB