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@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@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@oafsvr /]# pwd / [root@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@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
Miguel Da Silva - Servicio de Informática
2006-Jul-31 20:59 UTC
[Samba] NT_STATUS_BAD_NETWORK_NAME
On Mon, 31 Jul 2006 16:56:07 -0300 "pfoglia" <pfoglia@terra.com.br> wrote:> 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@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@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@oafsvr /]# pwd > / > [root@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@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 > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/sambaDid you checked the logs? Try to use a higher loglevel. Greetings. -- Miguel Da Silva. Servicio de Informatica. Facultad de Ciencias.
I used log level = 10 when try to connect with oaf share i receive this message UNIX token of user 500 Primary group is 506 and contains 7 supplementary groups Group[ 0]: 506 Group[ 1]: 10 Group[ 2]: 504 Group[ 3]: 505 Group[ 4]: 507 Group[ 5]: 508 Group[ 6]: 511 [2006/08/01 14:30:02, 5] smbd/uid.c:change_to_user(260) change_to_user uid=(500,500) gid=(0,506) [2006/08/01 14:30:02, 3] smbd/service.c:make_connection_snum(941) oafsvr (192.168.0.3) connect to service IPC$ initially as user Paulo (uid=500, gid=506) (pid 15329) when try to connect to share ISO9000 i receive [2006/08/01 14:30:02, 5] auth/auth_util.c:debug_unix_user_token(475) UNIX token of user 500 Primary group is 506 and contains 7 supplementary groups Group[ 0]: 506 Group[ 1]: 10 Group[ 2]: 504 Group[ 3]: 505 Group[ 4]: 507 Group[ 5]: 508 Group[ 6]: 511 [2006/08/01 14:30:02, 5] smbd/uid.c:change_to_user(260) change_to_user uid=(500,500) gid=(0,506) [2006/08/01 14:30:02, 0] smbd/service.c:make_connection_snum(911) '/u02/ISO9000' does not exist or permission denied when connecting to [ISO9000] Error was Permiss??o negada [2006/08/01 14:30:02, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2006/08/01 14:30:02, 5] auth/auth_util.c:debug_nt_user_token(449) NT user token: (NULL) [2006/08/01 14:30:02, 5] auth/auth_util.c:debug_unix_user_token(475) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2006/08/01 14:30:02, 5] smbd/uid.c:change_to_root_user(275) change_to_root_user: now uid=(0,0) gid=(0,0) [2006/08/01 14:30:02, 3] smbd/connection.c:yield_connection(69) Yielding connection to ISO9000 [2006/08/01 14:30:02, 3] smbd/error.c:error_packet(146) error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME [2006/08/01 14:30:02, 5] lib/util.c:show_msg(500) [2006/08/01 14:30:02, 5] lib/util.c:show_msg(510) but the ath exist and the permissions are completepwd/ls -la... drwxr-xr-x 23 Paulo oaf 4096 Jul 15 12:05 u02...pwd/u02ls -la ...drwxr-xr-x 2 Paulo oaf 4096 Dez 31 1969 ISO9000...Greetings.To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba