Henrycoffin
02-28-2001, 03:02 PM
I have been having trouble getting swat to work through xinetd and have failed so i have written my smb.conf by hand. All seems to work until i try to access the shared files and then the error message
the share is not accessible the file has been moved or removed.
I know for a fact that it hasn't can anyone shed any light on this or let me know how i can enable swat through xinetd i have edited the swat file in xinetd.d but keep getting a broken connection error in netscape.
Please HEEEELLLLLLLLLPPPPPPPP!!!!!!!!!!!!
f'lar
02-28-2001, 03:05 PM
What do you know of your network topology?
James Bond
02-28-2001, 06:01 PM
That error message is usually gotten when you tell it to share, oh, say, /home/samba/public and, the folder doesn't exist.
For SWAT, make sure that this line is in your /etc/services file (this is under SuSE, I think it is the same for all distros)
swat 901/tcp
to see if it is already there, type
cat /etc/services|grep swat
if it is there, in a web browser, type
http://<samba machine's ip here>:901
this will prompt you for a username and a password, use root and your root password respectively.
Need more help--
brmolnar@ursinus.edu
-JB
I can even post my smb.conf, in fact, I will
# Global parameters
[global]
workgroup = ZWINGLI101
netbios name = FLINT
server string = Flint the mighty
encrypt passwords = Yes
map to guest = Bad User
null passwords = Yes
username map = /etc/smbusers
log file = /usr/lock/samba/log/log.smb.%m
preferred master = Yes
wins server = 198.17.40.1
guest account = smbuser
valid users = @users smbuser
read list = smbuser
write list = @users
[mp3]
comment = Mp3's
path = /work/mp3
read list = @users smbuser
write list =
guest ok = Yes
[private]
comment = private folder
path = /work
guest account =
valid users = brad
admin users = brad
read list =
write list =
writeable = Yes
[Tom]
comment = Pomenti's folder
path = /work/Tom
valid users = pomenti brad smbuser
admin users = pomenti
writeable = Yes
browseable = No
[root]
comment = For Administrative purposes only
path = /
revalidate = Yes
guest account = brad
invalid users = smbusers
valid users = root, brad
admin users = root
read list =
write list =
[homes]
comment = Home Directory
guest account =
invalid users = smbuser
valid users = @users
read list =
writeable = Yes
[unsorted]
comment = Unsorted Mp3's
path = /work/unsorted
read list = @users smbuser
write list =
guest ok = Yes
[media]
comment = Movies and Background Pictures
path = /work/media
read list = @users smbuser
writeable = Yes
guest ok = Yes
[Personals]
comment = Personal Shares
path = /work/personal
admin users = @users smbuser
read list =
write list =
guest ok = Yes
I have a guest user set up as smbuser, all regular users are in a group called users, the @users gives the same permissions to all members of the group users, so, I add a user, and, they are immediatly set up with all of the basic items needed. This uses user based security, I can help you with share if you'd like. I used to run share, but, for various reasons I switched to user (mainly b/c I switched from Win98 to Win2K).
NeoFax
03-02-2001, 02:30 AM
What distro are you using? If it is RedHat or Mandrake just use ntsysv and enable swat. This should work perfectly fine. If not, use what James Bond said if you are using inetd. However, I think you said you have xinetd. To get this to work go to /etc/xinetd.d/swat and change the file to read disable=no and this should work fine. Now just go to /etc/rc.d/rc?.d(?= runlevel 5/3). Find the swat start script i.e. S85swat. Now just type(at the CLI) ./S85swat restart. Now in a web browser type http://localhost:901 and you should be greeted to a login. Before making any changes backup your smb.conf file.