[Samba] swat

root pedramd at systemgroup.net
Wed Dec 25 06:22:49 GMT 2002


dear sir

i install it the samba and swat configuration in my pc,but my web
browser cannot browse the http://localhost:901 

i configure file this below :

in etc/xinetd.conf :

#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
	instances               = 60
        log_type                = SYSLOG authpriv
        log_on_success		= HOST PID
        log_on_failure		= HOST
	cps			= 25 30
}

includedir /etc/xinetd.d
swat stream tcp nowait root /usr/local/samba/bin/swat swat

in etc/xinetd.d/swat is :

service swat
{
        port    = 901
        socket_type     = stream
        wait    = no
        user    = root
        server = /usr/sbin/tcpd
        server_args  = /usr/local/samba/bin/swat
        log_on_failure  += USERID
        disable = no
}

in etc/samba/smb.conf is :

[global]

workgroup = WORKGROUP
server string = Samba Server
hosts allow = 192.168.123. 127. 
printcap name = /etc/printcap
load printers = yes
printing = lprng
guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 0
security = share
;   password server = <NT-Server-Name>
;  password level = 8
;  username level = 8
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
username map = /etc/samba/smbusers
include = /etc/samba/smb.conf.%m
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
host allow = 127. 10.1.1 194.7.51.
host deny = *

[shared]
comment = Shared read/write directory for all LAN users and guest
path = /home/shared
public = yes
only guest = yes
writable = yes
printable = no

[homes]
comment = Home directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
map to guest = bad user

please help me .

regards 
pedram dehghani
System Administrator	
SG Co.




More information about the samba mailing list