Women in Technology

Hear us Roar

  Inside Samba: Windows Sharing for the Mac
Subject:   problem activating SWAT
Date:   2003-05-23 06:27:09
From:   anonymous2
400 Server Error
chdir failed - the server is not configured correctly

OS x Version 10.2.6

I did everything what was asked in the txt.
put the line
swat 901/tcp #swat
in /etc/services

touch file swat in directory /etc/xinetd.d
service swat
disable = no
only_from =
socket_type = stream
wait = no
user = root
server = /usr/sbin/swat
server_args = -s /etc/smb.conf
groups = yes
flags = REUSE

restarted xinetd
sudo killall -HUP xinetd

Is there someone that can help?
Thanks in advance

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Jason Deraleau photo problem activating SWAT
    2003-05-23 11:08:26  Jason Deraleau | O'Reilly Author [View]

    Sounds like a permissions error. Assuming you're not running xinetd as a user other than root, you probably have some modified permissions on your disk. Run the command sudo diskutil repairPermissions / to restore the Apple designated permissions.
    • problem activating SWAT
      2003-08-20 11:58:21  anonymous2 [View]

      I had the same error. Try a "which swat".

      Besides the default OS X install of samba, it turns out that Samba was also installed by Fink on my machine (and /sw/sbin comes before /usr/sbin in my PATH). I edited /etc/xinetd.d/swat, changing the "server=" line from "/usr/sbin/swat" to "/sw/sbin/swat" and then everything was fine.