Re: [Samba] samba 3 / AD / krb5_cc_get_principal failed
Update your kerberos5 to version 1.3.* . Best Regards! Jacky Kim . Hi all, I successfully joined my Samba 3.0.6 box to our AD tree. wbinfo -t and -u work as expected. But when I try to access a share on the samba box (Windows AD controller), I am asked for a password, Samba then logs [2004/09/06 11:49:28, 1] smbd/sesssetup.c:reply_spnego_kerberos(173) Failed to verify incoming ticket! winbindd sometimes logs [2004/09/06 11:42:55, 1] libsmb/clikrb5.c:ads_krb5_mk_req(313) krb5_cc_get_principal failed (No credentials cache found) What is wrong here? Any ideas? Regards Olaf -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] [HELP!!!]: Fail to mount with NULL password in samba 3.0.6
Can anybody answer me?! Thanks in advance!!! I have patch 3.0.6 with all patchs in http://samba.org/~jerry/patches/post-3.0.6/ , and set null passwords = yes in smb.conf. It works well to mount samba share in linux box when user alpha have non-empty password. But when set alpha's passwork as NULL, I get the follow messages: # mount -t smbfs -o username=alpha,password= //192.168.3.101/pub /mnt Anonymous login successful 24968: tree connect failed: ERRDOS - ERRnoaccess SMB connection failed And what samba log say: [2004/08/24 16:30:08, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [alpha] - [alpha] FAILED with error NT_STATUS_WRONG_PASSWORD Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbpasswd in samba 3.0
Try it: # (echo password; echo password) | smbpasswd -s -a username Best Regards! Jacky Kim . For scripting then, what would the appropriate syntax be? smbpasswd -s -a username password this was working fine for me in 2.2.x and 3.0.x until the upgrade 3.0.6 If I want to change password with a script - i.e. single line of code. what is the appropriate command syntax in 3.0.6? Jake Holmquist Manhattan College [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] [HELP 3.0.6]: Fail to mount with NULL password
# mount -t smbfs -o username=alpha,password= //192.168.3.101/pub /mnt Anonymous login successful 24968: tree connect failed: ERRDOS - ERRnoaccess SMB connection failed # mount -t smbfs -o username=alpha //192.168.3.101/pub /mnt Password: [ENTER] Anonymous login successful 24977: tree connect failed: ERRDOS - ERRnoaccess SMB connection failed I have set: null passwords = yes And it works well if set alpha's password as non-empty password. Hi, I failed to mount samba 3.0.6's share with NULL password: # mount -t smbfs -o username=alpha,password= //192.168.3.101/pub /mnt And what samba log say: [2004/08/24 16:30:08, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [alpha] - [alpha] FAILED with errorNT_STATUS_WRONG_PASSWORD But it is ok when using samba 2.2.8a! Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] [3.0.6]: Fail to mount with NULL password
I have set: null passwords = yes And it works well if set alpha's password as non-empty password. Hi, I failed to mount samba 3.0.6's share with NULL password: # mount -t smbfs -o username=alpha,password= //192.168.3.101/pub /mnt And what samba log say: [2004/08/24 16:30:08, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [alpha] - [alpha] FAILED with errorNT_STATUS_WRONG_PASSWORD But it is ok when using samba 2.2.8a! Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] [3.0.6]: Fail to mount with NULL password
Hi, I failed to mount samba 3.0.6's share with NULL password: # mount -t smbfs -o username=alpha,password= //192.168.3.101/pub /mnt And what samba log say: [2004/08/24 16:30:08, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [alpha] - [alpha] FAILED with errorNT_STATUS_WRONG_PASSWORD But it is ok when using samba 2.2.8a! Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] mount with NULL password
Hi, I failed to mount samba 3.0.6's share with NULL password: # mount -t smbfs -o username=alpha,password= //192.168.3.101/pub /mnt And what samba log say: [2004/08/24 16:30:08, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [alpha] - [alpha] FAILED with errorNT_STATUS_WRONG_PASSWORD But it is ok when using samba 2.2.8a! Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] smbpasswd in samba 3.0
In samba 2.2.8, smbpasswd can change a user's smb password without prompt: # smbpasswd username newpswd How to do it in samba 3.0? I do want to change user's password without prompt! Best regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] init_iconv Conversion problem
When I reload samba 3.0.5, I got the follow messages: [2004/08/06 18:08:02, 1] smbd/server.c:open_sockets_smbd(348) Reloading services after SIGHUP [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from UCS-2LE to CP850 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from UCS-2LE to ASCII [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from UTF-8 to CP850 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from ANSI_X3.4-1968 to CP850 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from CP850 to UCS-2LE not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to UCS-2LE [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from CP850 to UTF-8 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from CP850 to ANSI_X3.4-1968 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from CP850 to UTF8 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to ASCII [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(134) init_iconv: Conversion from UTF8 to CP850 not supported [2004/08/06 18:08:02, 0] lib/charcnv.c:init_iconv(142) init_iconv: Attempting to replace with conversion from ASCII to ASCII Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] RE: win2k server the specified network name is invalid
Hi, it is resolved by Enable NetBIOS over TCP/IP : Open Windows Explorer Right-click on My Network Places Select: Properties Right-click on Local Area Network Select: Properties Select: Internet Protocol TCP/IP Click on Properties Click on Advanced Select the WINS tab Select Enable NetBIOS over TCP/IP Click OK I have 2 win2k servers and 1 samba(2.2.8a) server in my LAN. The 2 win2k servers are samba and can access each other. The 1st win2k server can access samba server, but the 2nd win2k server can't access samba server: it say the specified network name is invalid I check samba log(log level = 2), and get no information! But when the 1st win2k server access samba server, the log is as follows: [2004/08/04 17:32:43, 2] smbd/reply.c:reply_special(92) netbios connect: name1=*SMBSERV name2=SRV1 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba 3.0.5 stable?
Why does samba 3.0.5 have so many ploblem? After I copy several files to samba server, I got the follow message in samba log! And where can i get 3.0.6 pre-releases version? [2004/08/05 17:26:26, 0] nmbd/nmbd_nameregister.c:register_name_response(130) register_name_response: server at IP 192.168.0.102 rejected our name registration of MYG ROUP1d IP 192.168.0.202 with error code 6. [2004/08/05 17:26:26, 0] nmbd/nmbd_become_lmb.c:become_local_master_fail2(417) become_local_master_fail2: failed to register name MYGROUP1d on subnet 192.168.0.202. Failed to become a local master browser. [2004/08/05 17:26:26, 0] nmbd/nmbd_become_lmb.c:become_local_master_fail2(417) become_local_master_fail2: failed to register name MYGROUP1d on subnet 192.168.0.202. Failed to become a local master browser. [2004/08/05 17:26:26, 0] nmbd/nmbd_namelistdb.c:standard_success_release(384) standard_success_release: Name release for name __MSBROWSE__01 IP 192.168.0.202 on sub net 192.168.0.202. Name was not found on subnet. [2004/08/05 17:26:26, 0] nmbd/nmbd_namelistdb.c:standard_fail_register(283) standard_fail_register: Failed to register/refresh name MYGROUP1d on subnet 192.168.0. 202 [2004/08/05 17:26:26, 0] lib/fault.c:fault_report(36) === [2004/08/05 17:26:26, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 10323 (3.0.5) Please read the appendix Bugs of the Samba HOWTO collection [2004/08/05 17:26:26, 0] lib/fault.c:fault_report(39) === [2004/08/05 17:26:26, 0] lib/util.c:smb_panic2(1398) PANIC: internal error [2004/08/05 17:26:26, 0] lib/util.c:smb_panic2(1406) BACKTRACE: 1 stack frames: #0 nmbd(smb_panic2+0xef) [0x80ab28d] [2004/08/05 19:18:13, 1] smbd/service.c:make_connection_snum(619) abc (192.168.0.3) connect to service abc initially as user abc (uid=503, gid=100) (pid 1 0387) Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba 3.0.5 stable?
Then where or when are the patchs available? Jacky Kim . On Thu, Aug 05, 2004 at 08:21:39PM +0800, Jacky Kim wrote: Why does samba 3.0.5 have so many ploblem? After I copy several files to samba server, I got the follow message in samba log! Samba 3.0.5 is a security release *only*. It only contains the two known security fixes over the 3.0.4 release. It does not contain any of the bug fixes that were discovered and fixed since 3.0.4. Jeremy. . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] win2k server the specified network name is invalid
I have 2 win2k servers and 1 samba(2.2.8a) server in my LAN. The 2 win2k servers are samba and can access each other. The 1st win2k server can access samba server, but the 2nd win2k server can't access samba server: it say the specified network name is invalid I check samba log(log level = 2), and get no information! But when the 1st win2k server access samba server, the log is as follows: [2004/08/04 17:32:43, 2] smbd/reply.c:reply_special(92) netbios connect: name1=*SMBSERV name2=SRV1 Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.0.5 PANIC
Hi, David: I don't use printers at all. so i think it has nothing with printer lock. Best Regards! Jacky Kim . Hi, This is worrying as we have had exactly the same error with 3.0.2a on Solaris/cups. Have you had a problem with printers as well? I believe our error was caused by printing crashing samba, and a quick fix was to delete the printer lock file. However, when I emailed the problem, we were told by Samba.org to upgrade to 3.0.5! David -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.0.5 PANIC
Hi, all: I am using Samba 3.0.5 with patch at http://samba.org/~jerry/patches/post-3.0.4/. But I found the follow messages in samba log: === [2004/07/29 01:01:57, 0] lib/util.c:smb_panic2(1398) PANIC: internal error [2004/07/29 01:01:57, 0] lib/util.c:smb_panic2(1406) BACKTRACE: 3 stack frames: #0 smbd(smb_panic2+0xef) [0x8179111] #1 /lib/libc.so.6(abort+0x18b) [0x4016389b] #2 smbd(readdirname+0) [0x81791d1] [2004/07/29 01:01:57, 0] tdb/tdbutil.c:tdb_log(725) tdb(/var/samba/ntforms.tdb): tdb_reopen: open failed (No such file or directory) [2004/07/29 01:01:57, 0] smbd/server.c:open_sockets_smbd(419) tdb_reopen_all failed. [2004/07/29 01:01:57, 0] lib/util.c:smb_panic2(1398) PANIC: tdb_reopen_all failed. [2004/07/29 01:01:57, 0] lib/util.c:smb_panic2(1406) BACKTRACE: 1 stack frames: #0 smbd(smb_panic2+0xef) [0x8179111] [2004/07/29 01:01:57, 0] lib/fault.c:fault_report(36) === [2004/07/29 01:01:57, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 6 in pid 4711 (3.0.5) Please read the appendix Bugs of the Samba HOWTO collection [2004/07/29 01:01:57, 0] lib/fault.c:fault_report(39) === Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] samba 3.0.5 force user problem
Hi, all: The follow parameters work well in samba 2.2.8a, But I updated samba from 2.2.8a to the latest samba 3.0.5 , I can't write 'test' share! What is the ploblem? [test] path = /pub/test force user = abc write list = jacky valid users = jacky,abc create mode = 0664 directory mode = 0775 Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows 2K outperform Linux/Samba very much?
Thank Mark. I have tried another test program in Linux, it call 2 C lib functions (open fstat) to small files, and I compute the time they take via gettimeofday system call. // C code ... ret = gettimeofday(before, zone); fd = open(argv[1], O_RDONLY); ret = gettimeofday(after, zone); interval1 = (after.tv_usec - before.tv_usec); ret = fstat(fd, buf); ret = gettimeofday(before, zone); interval2 = (before.tv_usec - after.tv_usec); // C code ... Linux Test results(time unit is usec): case open fstat - 1 800 240 1 757 239 2 18175 245 2 17240 246 Case 1: smbmount Linux/samba's share that contains 20,000 small files set 'case sensitive = Yes' in smb.conf Case 2: smbmount Windows's share that contains 20,000 small file Test analysis: 1. Linux/samba performs much better than Windows as for open system call. 2. The 2 Operation systems have same performance with fstat system call. But when VB test program in Windows is used, Windows has much better perpormance then linux/samba // VB code ... Set objFSO = CreateObject(Scripting.FileSystemObject) thistime = thisnow If objFSO.FileExists(fn) Then totle = totle Check file time CStr(thisnow - thistime) + ms + vbCrLf thistime = thisnow Set objFile = objFSO.GetFile(fn) totle = totle Get object time CStr(thisnow - thistime) + ms + vbCrLf thistime = thisnow temp = DateValue(CStr(objFile.DateLastModified)) totle = totle Get date time CStr(thisnow - thistime) + ms + vbCrLf End If // VB code ... Windows Test results(time unit is msec): case FileExists GetFile DateLastModified -- --- 1 20 0100 1 00120 1 0061 2 30 10 0 2 30 00 2 10 00 Case 1: map Linux/samba's share that contains 20,000 small files set 'case sensitive = Yes' in smb.conf Case 2: map Windows's share that contains 20,000 small file Can we get the follow conclusions as for check small file's property: 1. Windows client can get much better performance from Windows's share than others' 2. Linux client can get much better performance from Linux/Samba's share than others' Best Regards! Jacky Kim . Hi, The next step is probably to capture some network traces of your benchmarking test and compare and contrast the NT and Samba backends. Playing with the negotiated protocol level might win you some more performance by simplifying the transactions. It may lose you a lot too though. (See max protocol option) There are the max xmit/socket options/stat cache tweakables. If you have logging wound up on the linux box, that can affect performance greatly too. How does performance of the filesystem on the linux machine vary with number of files in the directory ? Ie, take samba out of the equation and see if you're running into underlying issues with your file layout. Splitting your directory into a hierarchical structure is certainly more scalable than a flat directory. Mark -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: Re: [Samba] Windows 2K outperform Linux/Samba very much?
I just want to get small files' property, NOT content. I heve compared XFS and Reiserfs just now, and found that the results are very likely too. Here, I have seen sub 700MHz P3 systems with IDE disks blow away a dual 900MHz 2K system with SCSI drives in every manner. I would recommend trying reiserfs, it is superior at handling small files. This is what we are using. I want to check small files' property(such as date, path, and so on) frequently. The files are stored in netwrok driver and their sizes vary from 2KB to 5KB. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: Re: [Samba] Windows 2K outperform Linux/Samba very much?
Sorry, I miss the follow informations: 1. There are 100,000 files in shared directory. That's the problem. Because Samba has to present a case insensitive view of a case-sensitive filesystem we have to scan the entire directory to ensure a file doesn't exist. The answer to the why is Samba slow question in this case is don't do that (put 100,000 files in a directory). I trid 20,000 files in a directory too, and found the same result: Windows's share is about 10 times faster than Linux/samba's one when get small file's property(NOT content). Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows 2K outperform Linux/Samba very much?
Thank Mark. Yeah, it gains about 30% performance raise to set 'case sensitive=yes'. But Windows's share is still about 8 times faster than Linux/Samba's . After several tests, I find that XFS's performance is very near to Reisfer when checking files' property. So I think the main problem is caused by samba not File system. Is there any other config I can set? Best Regards! Jacky Kim . You can use the configuration options to force filenames to a particular case, and then bypass the slow case-insensitive matching by forcing case sensitivity: mangle case = yes case sensitive = yes default case = lower preserve case = no short preserve case = no However, on sharing a VFAT filesystem, perhaps you can preserve case, and gain the speed increase by just setting 'case sensitive=yes'. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Windows 2K outperform Linux/Samba very much?
Hi, all: I want to check small files' property(such as date, path, and so on) frequently. The files are stored in netwrok driver and their sizes vary from 2KB to 5KB. I found that Windows 2K outperform Linux/Samba very much after I campared the bench results. I am very confused about it and who can explain it? The computers' configurations are as follows: 1. PC Client It runs the follow VB program to compute the time when check files' property Operation System: Windows 2000 professional // ... Set objFSO = CreateObject(Scripting.FileSystemObject) thistime = thisnow If objFSO.FileExists(fn) Then totle = totle Check file time CStr(thisnow - thistime) + ms + vbCrLf thistime = thisnow Set objFile = objFSO.GetFile(fn) totle = totle Get object time CStr(thisnow - thistime) + ms + vbCrLf thistime = thisnow temp = DateValue(CStr(objFile.DateLastModified)) totle = totle Get date time CStr(thisnow - thistime) + ms + vbCrLf End If 2. Linux PC Server: It provide Linux/Samba shared directory for the client (1) Operation System kernel = 2.6.6 file system = xfs nic = intel pro 100 Samba 2.2.8a (I have tried samba 3.0.4, and the result is likely) (2) smb.conf [global] encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=4096 SO_SNDBUF=4096 max xmit = 4096 read raw = No wide links = No [pub] path = /pub guest ok = no write list = test create mode = 0664 directory mode = 0775 3. Windows PC Server: It provide Windows shared directory for the client Operation System: Windows 2000 professional 4. Bench results Windows Linux/Samba CHECK OBJECT DATE CHECK OBJECT DATE - -- - -- 760 10 120 10 0 203 750 10 80 20 0 363 780 10 50 20 761 632 750 10 50 10 0 173 800 0 10 40 0 711 90 0 140 240 212 871 60 40 90 240 212 821 90 0 50 210 30 162 60 50 10 20 220 150 10 30 20 30 30 160 0 50 80 741 50 412 10 40 110 781 10 412 20 0 70 20 781 381 10 0 70 10 791 81 20 20 0 50 21 691 NOTE: the unit is ms. Best Regards! Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Windows 2K outperform Linux/Samba very much?
Sorry, I miss the follow informations: 1. There are 100,000 files in shared directory. 2. Mkfs.xfs data device in linux server, and mount it with noatime option Jacky Kim . -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba