[Samba] NT_STATUS_BAD_NETWORK_NAME

pfoglia pfoglia at terra.com.br
Mon Jul 31 19:56:07 GMT 2006


Hello,

I installed samba 3.0.23 on Fedora Cora 4 and I configured it with this smb.conf file: 
[global]
        dos charset = UTF-8
        workgroup = OAF_ADMIN
        server string = OAF Samba PDC Server
        passdb backend = tdbsam
        username map = /etc/samba/smbusers
        password level = 1
        log level = 13
        log file = /var/log/samba/log.%m
        max log size = 50
        name resolve order = wins bcast hosts
        time server = Yes
        add user script = /usr/sbin/useradd -m "%u"
        delete user script = /usr/sbin/userdel -r "%u"
        add group script = /usr/sbin/groupadd "%g"
        delete group script = /usr/sbin/groupdel "%g"
        add user to group script = /usr/sbin/usermod -G "%g" "%u"
        add machine script = /usr/sbin/useradd -s /bin/ false -d /var/lib/nobody "%u"
        shutdown script = /var/lib/samba/scripts/shutdown.sh
        abort shutdown script = /sbin/shutdown -c
        logon script = %U.bat
        logon path = /u02/bat
        logon drive = X:
        logon home = \%L\%U
        domain logons = Yes
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        map acl inherit = Yes
        dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd

[tmp]
        comment = temporary files
        path = /tmp
;       read only = yes

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        browseable = No

[netlogon]
        comment = Network Logon Service
        path = /u02/bat
        guest ok = Yes
        share modes = No

[OAF]
        comment = Dieret\uffffrio geral
        path = /oaf
        invalid users = oaf, aluno
        read only = No
        create mask = 0777
        force create mode = 0777
        directory mask = 0777
        force directory mode = 0777
        guest ok = Yes
[ISO9000]
        comment = Dieret\uffffrio geral
        path = /u02/ISO9000
        invalid users = oaf, aluno
        read only = No
        create mask = 0755
        force directory mode = 0755
        guest ok = Yes

When I try to check the share OAF with the smbclient command it work fine 
[root at oafsvr ~]# smbclient //OAFSVR/oaf -UPaulo
Password:
Domain=[OAF_ADMIN] OS=[Unix] Server=[Samba 3.0.23-1.fc4]
smb: \> exit
but when try to check the share ISO9000
I receive BAD_NETWORK_NAME error:
[root at oafsvr ~]# smbclient //OAFSVR/ISO9000 -UPaulo
Password:
Domain=[OAF_ADMIN] OS=[Unix] Server=[Samba 3.0.23-1.fc4]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

the only difference between the two directories is the oaf is path on root device and /u02 is path of different
partition.
see the ls and fstab file
[root at oafsvr /]# pwd
/
[root at oafsvr /]# ls -la
total 222
drwxr-xr-x   33 root  root  4096 Jul 28 18:40 .
drwxr-xr-x   33 root  root  4096 Jul 28 18:40 ..
-rw-r--r--    1 root  root     0 Jul 27 19:09 .autofsck
drwxr-xr-x    2 root  root  4096 Mar 24  2005 .automount
drwxr-xr-x    4 root  root  4096 Mai  3 17:53 bck001
drwxr-xr-x    2 root  root  4096 Mar 11 04:03 bin
drwxr-xr-x    4 root  root  1024 Mar 10 13:57 boot
drwxr-xr-x    3 root  root  4096 Mar 16 17:29 data
drwxr-xr-x   11 root  root  4000 Jul 27 19:10 dev
drwxr-xr-x   89 root  root 12288 Jul 31 09:32 etc
drwxrwxrwx   39 root  root  4096 Jul 26 19:06 home
drwxr-xr-x   11 root  root  4096 Jul 26 18:01 lib
drwx------    2 root  root 16384 Jan 26  2006 lost+found
drwxr-xr-x    3 root  root  4096 Jul 27 19:09 media
drwxr-xr-x    2 root  root  4096 Fev  3 09:35 misc
drwxr-xr-x    2 root  root  4096 Mai 23  2005 mnt
drwxr-xr-x    2 root  root     0 Jul 27 19:09 net
drwxr-xr-x    3 root  root  4096 Jul 28 17:49 oaf
drwxr-xr-x    3 root  root  4096 Fev  2 14:26 opt
dr-xr-xr-x  227 root  root     0 Jul 27 16:08 proc
drwxr-x---   20 root  root  4096 Jul 27 19:10 root
drwxr-xr-x    2 root  root 12288 Jul 27 04:02 sbin
drwxr-xr-x    1 root  root     0 Jul 27 16:08 selinux
drwxr-xr-x    2 root  root  4096 Mai 23  2005 srv
drwxr-xr-x   10 root  root     0 Jul 27 16:08 sys
drwxr-xr-x    2 root  root  4096 Abr 19  2005 tftpboot
drwxrwxrwt   14 root  root  4096 Jul 31 14:42 tmp
drwxr-xr-x   23 Paulo oaf   4096 Jul 15 12:05 u02
drwxr-xr-x    3 root  root  4096 Jan 26  2006 u04
drwxrwxrwx    5 root  root  4096 Jul 31 13:26 u1
drwxr-xr-x    3 root  root  4096 Jan 26  2006 uescola
drwxr-xr-x    4 root  root  4096 Fev  2 13:44 uprog
drwxr-xr-x   14 root  root  4096 Jan 26  2006 usr
drwxr-xr-x   25 root  root  4096 Jan 26  2006 var
[root at oafsvr /]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1                        
LABEL=/boot             /boot                   ext3    defaults        1 2
LABEL=/db01             /uprog/app/oracle/oradata/db01  ext3    defaults        1 2
LABEL=/db02             /uprog/app/oracle/oradata/db02  ext3    defaults        1 2
LABEL=/dbutil           /uprog/app/oracle/oradata/dbutil ext3    defaults        1 2
/dev/devpts             /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
/dev/proc               /proc                   proc    defaults        0 0
/dev/sys                /sys                    sysfs   defaults        0 0
#LABEL=/u02              /u02                    ext3    defaults        1 2
/dev/sda3               /u02                    ext3    defaults        1 2
LABEL=/u04              /u04                    ext3    defaults        1 2
LABEL=/U02              /u1                     ext3    defaults        1 2
LABEL=/Bck001           /bck001                 ext3    defaults        1 2
#LABEL=/DB02             /u3                     ext3    defaults        1 2
#LABEL=/DB03             /u4                     ext3    defaults        1 2
LABEL=/uescola          /uescola                ext3    defaults        1 2
LABEL=/uprog            /uprog                  ext3    defaults        1 2
LABEL=SWAP-sda8         swap                    swap    defaults        0 0
/dev/hdd                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0

Anyone could help me ?

Thank you 
Paolo Foglia

Organizacao Auxilio Fraterno
Rua do Queimadinho, 17 - Lapinha
40325-250 Salvador (BA) - Brasil



More information about the samba mailing list