SWAT: please help

GL Fournerat gary at netin.com
Mon Mar 5 22:12:22 GMT 2001

Hello all:

Here's the problem [on a RH7 running kernel 2.2.17-14 with
Samba 2.0.7-21ssl and xinetd-]:

http://localhost:901 does bring up the SWAT login dialog
box.. but upon entering root as the user, followed by my
root passwd in the next entry... it tells me "Authentication

failed. Retry?"  I can tell you that I did enter the correct

root passwd, because I am root on this network.

Any ideas.. or should I just forget SWAT [as in it's buggy]
and run the daemons manually?  I've fought with this for
three days and I've had enough.

Historical:  [all this is done as root]

Created the group 'smb'

Created the user 'smbuser' w/ a home dir of /home/public
[I also disabled login on this user account when I created

#chown smbuser:smb /home/public
#chmod 2777 /home/public

#mkdir /home/samba
#chown smbuser:smb /home/samba
#chmod 2770 /home/samba

#mkdir /home/samba/data
#chown smbuser:smb /home/samba/data
#chown 2770 /home/samba/data

Via Linuxconf, open the group smb, and add the users I want
included in this group.

#emacs /etc/hosts
#cat /etc/hosts
#  arendia.FOURNERAT//etc/hosts
#            localhost.localdomain        localhost    arendia.FOURNERAT    arendia    compaq.FOURNERAT    compaq    marilyn.FOURNERAT    marilyn

[Note:  localhost and arendia are the same RH7 box.. compaq
is a NT 4 PDC... marilyn is a Win98 workstation.]

#emacs /etc/samba/lmhosts
#cat /etc/samba/lmhosts
# arendia.FOURNERAT//etc/samba/lmhosts
#            localhost    arendia    compaq    marilyn

#grep swat /etc/services
swat                901/tcp                    # Samba Web
Administration Tool

#emacs /etc/xinetd.d/swat
#cat /etc/xinetd.d/swat
# default: off
# description:  SWAT is the Samba Web Admin Tool.  Use swat
#                          to configure your Samba server.
To use SWAT, \
#                          connect to port 901 with your
favorite web browser.
service swat
            port        = 901
            socket_type    = stream
            wait        = no
            only_from =
            user        = smbuser
            server    = /usr/sbin/swat
            log_on_failure    += USERID
            disable    = no
#cat /etc/hosts.deny


#cat /etc/hosts.allow

swat:  192.168.0.

#killall -HUP xinetd
And somewhere along the line, the file /etc/samba/smbuser
was created (Linuxconf?)...

#cat /etc/samba/smbuser
#Unix_name = SMB_name1 SMB_name2
root = administrator admin
nobody = smbuser guest pcguest smbguest

Any help would be greatly appreciated!


More information about the samba mailing list