Click to See Complete Forum and Search --> : SWAT / Samba on RedHat 7


Arisen
02-25-2001, 10:03 PM
Red Hat 6.2 used the inetd internet daemon. As i understand it, Red Hat 7 uses the xinetd daemon instead. If this is correct I get lost when trying to edit the xinetd.conf configuration file (the replacememnt for innetd.conf). Inetd.conf and xinetd.conf look nothing alike. How do I use xinetd.conf?

Specifically, I am trying to enable Samba and Swat.

neffu
02-26-2001, 12:56 AM
Well if you want to enable SWAT you can make the following configuration in your /etc/inetd.conf file:

swat stream tcp nowait.400 root /usr/sbin/swat swat

Then restart inet daemon:
/etc/rc.d/init.d/./inet restart

Arisen
02-26-2001, 01:44 AM
As I mentioned before, I understand how the INETD systems (Daemon & .conf) in RedHat 6.2 work, however, 7 seems to use XINETD and the xinetd.conf file is chinese compared to its 6.2 counterpart.

the ".conf" on 6.2 is basically an ON / OFF config file (commented or not commented)

the 7 ".conf" appears to be more of a script. :confused:

trekker
02-26-2001, 06:23 AM
Try editing /etc/xinetd.d/swat and change "disable=yes" to "disable=no". And then "/etc/rc.d/init.d/smb start".

Hope this helps.

[ 26 February 2001: Message edited by: trekker ]

Coral Sea
02-26-2001, 09:09 PM
If what you're trying to do is have SWAT and SMB start when you boot up, then use:

chkconfig swat on

chkconfig smb on

While you're at it:

chkconfig smbd on

chkconfig nmbd on

Arisen
02-26-2001, 10:43 PM
smb and swat check out.
smbd and nmbd dont - error reading information on servicesmbd (or nmbd): No such file or directory

friend621
02-27-2001, 01:15 PM
Hi! I am very new to Linux and am using redhat 7.0. I am having problems getting the linux machine to talk to another NT machine.I have the smbd running. When I try to use smbclient as "smbclient -L <host>" I get this error.
"SSL:Error errot setting CA cert locations: error :00000000::lib(0) :func(0):reason(0)
trying default locations.
added interface ip=<local IP> bcast=IP nmask=maskIP
session request to host IP failed (Called name not present)"
After I was troubled by this message, i got to the documentation and tried to configure samba by SWAT. All the documentation I found was for 6.2 and there have been quiet a few changes in 7.0. would really appreciate a detailed guidance and/or direction where to find a step by step documentation (for 7.0).

Thanks in advance.

neffu
02-27-2001, 09:12 PM
lalit621,

Well I had to do the same thing for my network. Here are some guidelines I used for adding my linuxbox to the network. This assumes you are using NT service pack 3 or higher. However I did this on Mandrake 7.1 but it should work for your distro.

-Add IP addresses and host names for your PDC in /etc/hosts and /etc/lmhosts file.(This allows you to recognize the name of your PDC in linux.)
-Add linux machine in server manager - Computer - Add to Domain.
-Stop samba server
-Authentic password logons using command: " smbpasswd -j *YOURDOMAINNAME* -r *NTBOXNAME*"
-Edit the /etc/smb.conf file
Change or add the following lines:
In the Global section
security = domain
workgroup = *NAME OF YOUR DOMAIN*
encrypt passwords = yes
password server = *NAME OF YOUR DOMAIN*

-Restart the samba server

If you plan to use X in linux then you can download a program called LinNeighborhood which allows you to easily access your NT shares and other Windows shares from other You can get the program here: http://www.bnro.de/~schmidjo/

Hope that works.

Coral Sea
02-28-2001, 02:00 AM
Smdb and nmbd are part of the Samba suite. It could be that your path does not include the directory where smbd and nmbd are residing. On my PC, they're in /usr/sbin.

Try

chkconfig /usr/sbin/smbd on

and

chkconfig /usr/sbin/nmbd on

or wherever smbd and nmbd are. To find them, do either a

whereis smbd

or

find / -name smbd -print

(of course, same for nmbd).

If that doesn't work, try reinstalling Samba from your distro's CD using

rpm -ivh --force samba*rpm

Good luck.

NeoFax
02-28-2001, 03:21 AM
The easiest way to get SWAT to run in RedHat 7 is to use ntsysv at the CLI and enable it there. ntsysv will automagically change your xinetd config files. Hope this helps. Also, after enabling it in ntsysv, all you have to do is cd to /etc/rc.d/rc?.d(? being the runlevel 5/3). Finding the script number i.e. S85swat and the doing ./S85swat restart. Now SWAT should be enabled. Now in netscape/mozilla/konqueror go to http://localhost:901 and you should be greeted by SWAT. Best of luck. Oh, BTW Swat is only so good in getting a generic setup running. If you want samba as a PDC it will not work, nor does it use alot of the more far reaching attributes of samba. Also, backup your smb.conf file before running SWAT.

NeoFax

Arisen
02-28-2001, 08:41 AM
Quick follow up question:

what is CLI and PDC?

neffu
02-28-2001, 10:15 PM
Originally posted by Arisen:
Quick follow up question:

what is CLI and PDC?

CLI - Command Line Interface
PDC - Primary Domain Controller: SHORT ANSWER:the main server on an NT network that controls user access to that network domain.