* Re: RH 7.0 and Samba
2001-01-21 18:10 ` michal
@ 2001-01-27 21:52 ` Mohan Vaghul
2001-01-31 22:10 ` Mohan Vaghul
0 siblings, 1 reply; 4+ messages in thread
From: Mohan Vaghul @ 2001-01-27 21:52 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread