Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* RH 7.0 and Samba
@ 2001-01-21  6:11 Mohan Vaghul
  2001-01-21 18:10 ` michal
  0 siblings, 1 reply; 4+ messages in thread
From: Mohan Vaghul @ 2001-01-21  6:11 UTC (permalink / raw)



I just installed RH 7.0 on my alpha, and am wondering if there are any
documents associated with the upgrade. I find that the inetd.conf file is no
longer present in the /etc/ directory and am not sure how the samba process
(swat) gets started.

If any body has installed samba on RH 7.0, I would appreciate any pointers
to docs or tips.

Best regards

Mohan




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RH 7.0 and Samba
  2001-01-21  6:11 RH 7.0 and Samba Mohan Vaghul
@ 2001-01-21 18:10 ` michal
  2001-01-27 21:52   ` Mohan Vaghul
  0 siblings, 1 reply; 4+ messages in thread
From: michal @ 2001-01-21 18:10 UTC (permalink / raw)


Mohan Vaghul <mohan.vaghul@gte.net> wrote:

> I just installed RH 7.0 on my alpha, and am wondering if there are any
> documents associated with the upgrade.

Well, yes, there are. "Release Notes", for example, and there is
a whole CD with documentation for 7.0 (this stuff will be the same
regardless of architecture).

> I find that the inetd.conf file is no
> longer present in the /etc/ directory and am not sure how the samba
> process
> (swat) gets started.

inetd was replaced by xinetd. See /usr/share/doc/xinetd-*/*,
'man xinetd', 'man xinetd.conf', 'man xinetd.log' and possibly also
/usr/sbin/inetdconvert (it is written in Python so enthusiast of
this language will tell you that its code should be obvious to
everybody :-).  'xinetd' works on the same principle as 'inetd'
although some configuration details are slightly different.

> If any body has installed samba on RH 7.0, I would appreciate any
> pointers to docs or tips.

'chkconfig --list' shows swat as one of xinetd based services which
is off by default.  Typing 'locate swat' reveals not only an existence
of /etc/xinetd.d/swat but also of the whole book, 416 pages, in 
/usr/share/swat/using_samba/ on the top of some 2.5 MB of documentation
in /usr/share/doc/samba*/ (although it beats me why "Using Samba"
resides in /usr/share/swat/ :-).

   Michal


^ permalink raw reply	[flat|nested] 4+ messages in thread

* 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

* Re: RH 7.0 and Samba
  2001-01-27 21:52   ` Mohan Vaghul
@ 2001-01-31 22:10     ` Mohan Vaghul
  0 siblings, 0 replies; 4+ messages in thread
From: Mohan Vaghul @ 2001-01-31 22:10 UTC (permalink / raw)


I finally fixed this problem - and would classify this as a user error.

I ftp'd the samba-2.0.7-21ssl.src.rpm and used rpm --rebuild to rebuild the
entire the rpm (with ssl). I had to ftp openssl-devel rpm as well for this.
Upon installation of the 3 newly built rpm's, and enabling swat (changes
include localhost to 127.0.0.1 , and disable = no), and configuring smb
(/sbin/chkconfig -level 5 smb on) - I have been able to mount my linux
shares on windows 98SE.

Mohan




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-31 22:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-21  6:11 RH 7.0 and Samba Mohan Vaghul
2001-01-21 18:10 ` michal
2001-01-27 21:52   ` Mohan Vaghul
2001-01-31 22:10     ` Mohan Vaghul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox