In order to use Samba SWAT (Samba Web Administration Tool) in openSUSE and with the KDE Desktop, I do the following (Some items are shown in bold for clarity):
**A. **Edit Three Text Files as root and enable the service and remark out the only_from line: (Alt-F2: kdesu kwrite text.file)
- /etc/xinetd.d/servers
# default: off
# description: An internal xinetd service, listing active servers.
service servers
{
type = INTERNAL UNLISTED
port = 9099
socket_type = stream
protocol = tcp
wait = no
** disable = no**
**# only_from = 127.0.0.1**
FLAGS = IPv6 IPv4
}
- /etc/xinetd.d/services
# default: off
# description: An internal xinetd service, listing active services.
service services
{
type = INTERNAL UNLISTED
port = 9098
socket_type = stream
protocol = tcp
wait = no
** disable = no**
**# only_from = 127.0.0.1**
FLAGS = IPv6 IPv4
}
- /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/swat
**# only_from = 127.0.0.1**
log_on_failure += USERID
** disable = no**
}
B. Go to YaST / System / Runlevel / Select Expert Mode and Activate three services:
-
xinetd
2.** smb**
- nmb
Highlight the service with your mouse, pick the Set/Reset Button on the bottom right and elect to Enable the Service. Next, select the Start/Stop/Refresh button on the bottom left and select **Start Now **… When a service is started properly, you get a return code of zero.
C. Go to YaST / Security and Users / Firewall / Allowed Services (on left) / Allowed Service Listing and add under External Zone: NetBios Server, Samba Client, Samba Server and then press the Next button on bottom right and then the Finish Button, also on bottom right.
D. Add in the Samba Document File for SWAT. open YaST / Software / Software Management and search on Samba and place a check by samba-doc package and pick Accept on the bottom right and allow it to be installed.
E. When using Firefox to start Samba SWAT, you use the URL: http://localhost:901
F. When you want to browse your samba Network, you can use the command: dolphin smb://windowsnt/, the name windowsnt should be changed to the name of your workgroup which will be different.
G. Here is an Example smb file where I am only sharing NTFS Partitions over the network:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2011-11-02
[global]
workgroup = WINDOWSNT
netbios name = MASTERLINUX
server string = The Master of the Universe
security = SHARE
map to guest = Bad User
name resolve order = bcast host lmhosts wins
printcap name = cups
preferred master = Auto
local master = No
domain master = No
wins support = No
usershare allow guests = Yes
usershare max shares = 100
hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1
hosts deny = ALL
cups options = raw
write raw = yes
read raw = no
[Software]
path = /Software
read only = No
acl check permissions = No
inherit acls = Yes
guest ok = Yes
profile acls = Yes
[Windows]
path = /Windows
read only = No
acl check permissions = No
inherit acls = Yes
guest ok = Yes
profile acls = Yes
[DataSafe]
path = /DataSafe
read only = No
acl check permissions = No
inherit acls = Yes
guest ok = Yes
profile acls = Yes
Hopefully this information will be useful to you.
Thank You,