shui@pointsnorth.com
1998-Oct-09 14:39 UTC
Failed to connect NT workstation to Samba2.0alpha8
Hi Folks, I downloaded Samba2.0alpha8 from Samba site. Compiled it and installed it on the Solaris 2.6 unix box. I set up domain logon for both Windows 98 clients and WinNT. There is no problem logging on from Windows98 and the shares are all working alright. Then, I followed Samba NTDOM FAQ and add the NT workstation name into /etc/passwd and smbpasswd (using smbpasswd -a -m <machine_name>). On the NT workstation, I changed it from WORKGRP to DOMAIN <my_samba_domain> and I got the message "Welcome to <my_samba_domain>". The next thing I did is reboot my NT. I saw a login dialog box. I chose <my_samba_domain>. I entered a user name which only exists on the Samba server but then an error message is returned: "Cannot access <my_samba_domain>...". Could someone point to me what did I do wrong? I looked at the log.nmb and I found that it returned a "PANIC" error message. The Samba server then failed to respond to any requests, even from Windows 98, after then. The only thing I can do is to stop and restart the daemon again. When will there be an official release for 2.0 which supports NT domain logon? There are so many alpha versions out there that I got lost as to which one is working and which is not. Attached please find a copy of the error log and my smb.conf. Please excuse me for such a long message. Thank you for your kind attention. Sandie **** Log from log.smb **** [1998/10/08 11:05:26, 0] smbd/reply.c:session_trust_account(403) session_trust_account: Trust account DC8G3PTN$ user doesn't exist [1998/10/08 11:09:20, 0] smbd/reply.c:reply_sesssetup_and_X(655) NT Password did not match ! Defaulting to Lanman [1998/10/08 11:10:59, 0] smbd/reply.c:reply_sesssetup_and_X(655) NT Password did not match ! Defaulting to Lanman doing parameter encrypt passwords = yes doing parameter unix password sync = yes doing parameter passwd program = /bin/nispasswd %u doing parameter passwd chat = *New\spassword* %n\n *enter\snew\spassword* %n\n *password*changed* . [1998/10/08 11:28:55, 2] param/loadparm.c:do_section(2150) Processing section "[netlogon]" doing parameter path = /usr/local/samba2.0alpha8/samba/netlogon doing parameter writeable = no doing parameter guest ok = no doing parameter root preexec /usr/local/samba2.0alpha8/samba/bin/makelogonsc ript %U %h [1998/10/08 11:28:55, 2] param/loadparm.c:do_section(2150) Processing section "[homes]" doing parameter comment = Home Directories doing parameter browseable = no doing parameter writeable = no doing parameter write list = %S [1998/10/08 11:28:55, 2] param/loadparm.c:do_section(2150) Processing section "[mattheys]" doing parameter path = /export/home/mattheys doing parameter browseable = no doing parameter public = no doing parameter write list = @admin doing parameter read list = @admin doing parameter create mask = 660 doing parameter directory mask = 770 **** Error from nmb.log **** [1998/10/08 08:30:02, 1] nmbd/nmbd.c:main(664) Netbios nameserver version 2.0.0-prealpha started. Copyright Andrew Tridgell 1994-1998 [1998/10/08 08:30:02, 0] nmbd/nmbd.c:main(695) standard input is not a socket, assuming -D option [1998/10/08 08:30:02, 0] nmbd/asyncdns.c:start_async_dns(150) started asyncdns process 19041 [1998/10/08 08:30:02, 0] nmbd/nmbd_logonnames.c:add_logon_names(159) add_domain_logon_names: Attempting to become logon server for workgroup YYCTPA on subnet 204.50.11.4 [1998/10/08 08:30:02, 0] nmbd/nmbd_logonnames.c:add_logon_names(159) add_domain_logon_names: Attempting to become logon server for workgroup YYCTPA on subnet UNICAST_SUBNE T [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_win s(332) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup YYCTPA, subnet UNICAST _SUBNET. [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_win s(347) become_domain_master_browser_wins: querying WINS server at IP 204.50.11.4 for domain master browser name YYCTPA<1b> on workgroup YYCTPA _SUBNET. [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_win s(347) become_domain_master_browser_wins: querying WINS server at IP 204.50.11.4 for domain master browser name YYCTPA<1b> on workgroup YYCTPA [1998/10/08 08:30:02, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(118) become_logon_server_success: Samba is now a logon server for workgroup YYCTPA on subnet UNICAST_SUBNET [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(118) ***** Samba server YYCTPA04 is now a domain master browser for workgroup YYCTPA on s ubnet UNICAST_SUBNET ***** [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bca st(284) become_domain_master_browser_bcast: Attempting to become domain master browser on workgroup YYCTPA on subnet 204.5 0.11.4 [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bca st(298) Attempting to become domain master browser on workgroup YYCTPA on subnet 204.5 0.11.4 [1998/10/08 08:30:02, 0] nmbd/nmbd_become_dmb.c:become_domain_master_browser_bca st(298) become_domain_master_browser_bcast: querying subnet 204.50.11.4 for domain mas ter browser on workgroup YYCTPA [1998/10/08 08:30:06, 0] nmbd/nmbd_logonnames.c:become_logon_server_success(118) become_logon_server_success: Samba is now a logon server for workgroup YYCTPA on subnet 204.50.11.4 [1998/10/08 08:30:10, 0] nmbd/nmbd_become_dmb.c:become_domain_master_stage2(118) ***** Samba server YYCTPA04 is now a domain master browser for workgroup YYCTPA on s ubnet 204.50.11.4 ***** [1998/10/08 08:31:42, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 204.50.11.40: code = 0 [1998/10/08 08:31:46, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 204.50.11.40: code = 7 [1998/10/08 11:13:14, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69) process_logon_packet: Logon from 204.50.11.46: code = 12 [1998/10/08 11:13:14, 0] lib/fault.c:fault_report(40) ==============================================================[1998/10/08 11:13:14, 0] lib/fault.c:fault_report(41) INTERNAL ERROR: Signal 11 in pid 19040 (2.0.0-prealpha) Please read the file BUGS.txt in the distribution [1998/10/08 11:13:14, 0] lib/fault.c:fault_report(43) ==============================================================[1998/10/08 11:13:14, 0] lib/util.c:smb_panic(4075) PANIC: internal error **** SMB.CONF **** workgroup = yyctpa server string = Calgary, 'B' Agency Server security = user password level = 2 domain controller=yes domain logons = yes preferred master=yes domain master=yes wins support=yes logon script = %U.bat debug level = 5 encrypt passwords = yes unix password sync = yes passwd program = /bin/nispasswd %u passwd chat = *New\spassword* %n\n *enter\snew\spassword* %n\n *password*changed* . [netlogon] path = /usr/local/samba2.0alpha8/samba/netlogon writeable = no guest ok = no root preexec = /usr/local/samba2.0alpha8/samba/bin/makelogonscript %U %h [homes] comment = Home Directories browseable = no writeable = no write list = %S *** smbpasswd *** # # SMB password file. # root:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:Su per-User:/:/sbin/sh daemon:1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX: :/: bin:2:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX::/u sr/bin: sys:3:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX::/: adm:4:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:Adm in:/var/adm: lp:71:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:Lin e Printer Admin:/usr/spool/lp: smtp:0:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:Ma il Daemon User:/: uucp:5:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:uu cp Admin:/usr/lib/uucp: nuucp:9:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:u ucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico listen:37:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX :Network Admin:/usr/net/nls: nobody:60001:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXX:Nobody:/: noaccess:60002:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXX:No Access User:/: nobody4:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXX:SunOS 4.x Nobody:/: testuser:1001:212B68510DE6042A1486235A2333E4D2:CC27E3D37757BB316314A081B4DC D5CC: :/export/home/testuser:/bin/sh dc8g3ptn$:10013:BF956698645D3B2BE72C57EF50F76A05:5B8BB81B662A46756D0BA3B702 33B89 6:[W ]:LCT-361CF1B1:
Fetch alpha11. I did get panic with alpha8 (albeit not excatly in descibed situation). alpha11 so far works. /andrej
PayPC System Mail Subscriber
1998-Oct-10 11:19 UTC
Strangeness with Samba + quota -- pessimistic share free spaces reported
(View with monospaced font for clarity) Linux 2.0.33+ (all security patches + some performance ones) with quota supported compiled in Disk mount table: /dev/sda1 / ext2 defaults,usrquota,grpquota 1 1 /dev/sdb2 /u2 ext2 defaults,usrquota,grpquota 1 2 Disk Free Space is as follows: Filesystem 1024-blocks Used Available Capacity Mounted on /dev/sda1 3958767 2537568 1216372 68% / /dev/sdb2 4113072 590771 3480913 15% /u2 Samba 1.9.18p10, compiled with -DLINUX -DSHADOW_PWD -DQUOTAS -DFAST_SHARE_MODES -DALLOW_CHANGE_PASSWORD I have quota ->quota-1.51 directory just fine. Quota support is enabled for all volumes, testparm reports no errors. I've rebuilt the quota DB (checkquota) as well. My fs superblock details (very very very short version): Block count: 4096543 Reserved block count: 204827 Free blocks: 1421198 Disk quotas for user spamhead (uid 19000): Filesystem blocks quota limit grace files quota limit grace /dev/sda1 636316 2048576 2068576 5907 0 0 Disk quotas for group quantgod (gid 19002): Filesystem blocks quota limit grace files quota limit grace /dev/sda1 1827498 3000000 3100000 36601 0 0 I have 4 shares.... home, a Public (read+write a group spamhead's a part of), Applications (read only same group, write special-group), and webroot (read-write only special group, which spamhead's a part of, which does a force user and group to my web server's owner).>From WindowsNT4SP3 shares, I see the following disk space free (in the "root"browser window of the Active Crashtop Explorer: Name Total Size Free Space Applications: 1.95GB 593MB Public: 1.95GB 593MB spamhead: 1.95GB 593MB Webroot: 3.74GB 1.15GB So... The Total Size of the shares looks like - it makes sense to "clip" the values to my soft quota limit. That's reasonable. However, why is the free space off by 560MB? Note that Webroot (which has an unlimited quota (the web account it's force user'ed to)) displays the correct free space. My Macintosh clients which use Netatalk display correct free space on the same shares (1.15GB)... So where is samba coming up with these free space values? My quota system is working correctly, I repquota everyone and everything's accurate. I take into account the free space on the devices in question, and things look correct. (I have a larger quota than free space on the devices, so I imagine samba would just return the free space of the volumes to the clients, no?) Anyway, what's the matter here? Since it's over-pessimistic, I suppose from a data-loss standpoint, I'm not in any risk of doing something bad. It's just annoying. Any thoughts? =Robert=