On Thu, 19 Feb 2004 17:00:03 +1300, you wrote:

>Nick Rout wrote:
>
>>now for another adventure, swat is an excellent way of setting up samba.
>>on debian you need the package "swat". then browse to
>>http://linuxipaddress:901 (thats port 901). 
>>
>>the biggest trap is encrypted passwords. by default all windows versions
>>from about 98 onwards encrypt their passwords. standard linux
>>authentication via /etc/passwd cannot cope, so samba runs a separate
>>authentication scheme using smbpasswd.
>>
>>to add a user to that smbpasswd database, do this as root:
>>
>>smbpasswd -a patrick
>>
>>you will be prompted for a password. it can be the same as your linux
>>password, and must be the same as the password you log into windows with.
>>  
>>
>keep getting "connection refused" http://debian:901
>
>with hosts and lmhosts entry for 192.168.0.1 debian
You need to install swat, and configure inetd to start it up when
requested. 

Add the following line to /etc/inetd.conf:

swat stream tcp nowait:400 root /usr/local/samba/bin/swat swat

( assuming swat it found at /usr/local/samba/bin ), and then 

kill -1 <pid of inetd>

to get it to re-read the config. Then it should work ok. I'm doing
this from memory, as the later versions of linux run xinetd, not inetd
( it's just a more secure version of the same functionality, so don't
worry about that bit).

However, you may not have swat available, as it's quite new. You can
download the latest source from www.samba.org, or learn to edit
smb.conf manually (:

The reason that you cant see anything on the samba box from your
windows box is almost certainly that  you haven't shared anything on
the linux server yet. Thanks for that informative bit of blank screen,
Bill!

hth,

Steve

>smb.conf says password encryption is off.
>
>checked in samba documentation, in Debian swat is disabled by default.  
>Edit inetd.conf to enable swat. Kill inetd. Start inetd. Reload web 
>page. Enter root and password. It works :)
>
>At the moment in Network Neighourhod I can see the server but can't 
>browse it (it asks for a password for IPC$).
>
>Is Hugh McColl in your robotics mailing list?
>

Reply via email to