Beruflich Dokumente
Kultur Dokumente
Scenario
In this tutorial, i use two systems as described below
Samba server:
Operating system : CentOS 6.3
Hostname : sambaserver.unixmen.com
IP Address : 192.168.1.50/24
Samba client:
Operating system : Windows 7 Professional
Hostname : client
IP Address : 192.168.1.51/24
Edit and add the following lines in samba config file as shown below
[global]
dos charset = CP932
server string = Samba Server Version %v
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
hosts allow = 127., 192.168.1.
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[myshare]
path = /samba/share1
read only = No
create mask = 0777
directory mask = 0777
guest only = Yes
guest ok = Yes
Disable SELINUX
Create a new share called /samba/share2 and set the permissions to that share.
[secure]
path = /samba/share2
writable = yes
browsable = yes
guest ok = no
valid users = @smbgroup
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[myshare]
path = /samba/share1
read only = No
create mask = 0777
directory mask = 0777
guest only = Yes
guest ok = Yes
[secure]
path = /samba/share2
valid users = @smbgroup
read only = No
Now goto windows client and try to access the secured share.
# default: off
# description: SWAT is the Samba Web Admin Tool. Use swat \
# to configure your Samba server. To use SWAT, \
# connect to port 901 with your favorite web browser.
service swat
{
port = 901
socket_type = stream
wait = no
only_from = 127.0.0.1 192.168.1.0/24
user = root
server = /usr/sbin/swat
log_on_failure += USERID
disable = no
}
Open the web browser from any client syatems. In the address bar type
http://server-ip-address:901 and press enter. Now the console screen will
open. You can start configure samba server here.