From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,283854604af14662 X-Google-Attributes: gid111c93,public X-Google-ArrivalTime: 2001-01-27 13:54:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!newsfeed.direct.ca!look.ca!paloalto-snh1.gtei.net!news.gtei.net!dfiatx1-snr1.gtei.net.POSTED!not-for-mail Reply-To: "Mohan Vaghul" From: "Mohan Vaghul" Newsgroups: comp.os.linux.alpha References: <94f8m5$cia$1@pulp.srv.ualberta.ca> Subject: Re: RH 7.0 and Samba X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: X-Trace: /wqhX1cS2fS8VfsBhzVeo9EK9/AHc03o7VS0A7BANX14+EMnXpNwFQTagfZXG4XyxmbO1/buh5PI!yD32gSQlcknyD2Cef+kTwhVc2YSWtKUZfeLlovnCD438stjSSi4UoMpyGgkDPfZO0ocBqPBQgl50!0g3w+M8H X-Complaints-To: abuse@gte.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sat, 27 Jan 2001 21:52:28 GMT Distribution: world Date: Sat, 27 Jan 2001 21:52:28 GMT Xref: supernews.google.com comp.os.linux.alpha:2100 While I still haven't got Linux RH 7.0 and Samba 2.0.7 to work on Alpha, I am writing down some of the things I did based on mails I have got from Michal (see earlier reply) and other suggestions posted on the linux web sites (like deja.com). Problem: Upon upgrade to RH 7.0 - samba stopped working - i.e. I wasn't able to connect from my Windows 98SE to my alpha linux rh7.0 system using - net use \\ipaddress\sharename I had followed a "Windows / Samba Basics Cookbook by William Allen Scheer when doing the initial setup on RH 6.2. I referred back to this again, and found some changes. Although, not significant, the process of enabling samba appears not as straightforward as it used to be. What I have done/learnt so far, what works, and what doesn't: 1. inetd is replaced by a more secure xinetd. The upgrade to RH7.0 doesn't handle this well for samba. Upon reboot, swat and samba was not enabled. Why? a) It turns out that /etc/xinetd.conf (which replaces inetd.conf) includes a directory containing all the services initialization files (etc/xinetd.d/*). All the services are disabled by default (including swat). One has to enable it manually. However, I find that even after enabling the swat didn't help. I had to use /sbin/chkconfig tool to enable samba (and swat) for the different runlevels. I don't understand why xinetd.conf doesn't work the way it should. While I overlooked this in Michal's earlier mail to me, I tried it and it worked to locate and enable services. This accomplished the task of my being able to use the browser (http://localhost:901) to work the smb.conf file. 2. Having done the above, I was able to login using swat to modify my smb.conf file (which is now contained in /etc/samba/smb.conf - while originally it was in /etc/smb.conf). I setup the smb.conf to be similar to my old smb.conf (i.e. encrypted passwords, home directories etc). I also set up smbusers, smbpasswd to be similar to my old set up (smbusers, smbpasswd are now in /etc/samba directory). The trick here is to ensure that the windows user/password is the same the samba user/password. 3. After doing the above, I tried a couple of things on the linux samba server: smbclient -L localhost -U% - it gave me a ssl CA cert error I have since built an alpha-platform samba using the 2.0.7 sources --without_ssl, and the ssl error is no more. I still get an error - "connection to localhost failed", and there is a possibility that there is a bug in xinetd specifically to do with this (i.e localhost and samba). There is an updated version of xinetd for Intel platforms, but none for alpha. So, I did build an xinetd for alpha, and it doesn't doesn't seem to help. I ensured that the new images are being picked up (as opposed to the ones from the rpm's). Why is this not working still?? My hosts file contains "127.0.0.1 localhost.localdomain localhost". My hosts.allow file is empty, and hosts.deny file is empty, and my lmhosts file in (/etc/samba) is contains the same as the hosts file. 4. Then I tried: smbclient -L ipaddress -U root - is the only command that produces results once the root password is entered. while, smbclient -L ipaddress -U username - gives a "tree connect failed: code 0" Why is this? It doesn't appear to be an error in authentication, but something else. None of the /var/log/samba files indicate anything of importance. 4. On the windows 98se side (logged in as username/password), if I try to do : net use \\ipaddress\sharename - I get a specified resource is not available error. However, if I change the smb.conf setting for encrypted passwords to NO (as opposed to YES), i get a password prompt and and error in authentication after entering the right password. 5. I did read that there is an issue with encrypted passwords, but I am not sure what the resolution for this is. Though, I am not sure if this should affect the above setup. Does anybody know if I have to set up something in the windows registry as a work around? It is posisble that I don't have the right information in /etc/hosts, /etc/samba/lmhosts or some other file that requires to be modified as a part of the xinetd setup or samba setup. But, so far, I have been unsuccessful in getting my windows 98se to mount shares from the linux server. On the upside, tftp works just fine and I am able move files between the two systems (this tells me that the general network is functioning fine). I did play around with the smbclient using gdb, but couldn't uncover what causes the tree connect failed error. I suspect, since smbclient can not display the shares using username, neither will Windows 98SE client. Hence, my inablity to get this work. However, I believe that if I create a root/password account on windows, I maybe able to mount the shares on the windows client (but I haven't ventured to try this). Note: I do have xinetd 2.1.8.9pre14, while I have samba 2.0.7 Also, I have updated the 7.0 with the latest RH7.0 updates from the mirror sites. Mohan