Main
Configuration
You can configure samba to use in
different field, such as
ü Samba can be configured to use as a stand-alone
computer in a windows workgroup.
ü Samba can act as a member server of Windows Network.
ü Can act as domain controller for both windows &
Linux environment.
In this term you will show that how to configure samba to
use as a Stand-alone Server. But keep in mind that you cannot configure samba to
use all of that at the same time in a same machine. But can configure virtual
samba server to use more than one samba server, that will described next
tutorial.
Configuring
Samba as a Standalone Server:
A stand-alone computer can be a workgroup server or a member of a workgroup
environment. A stand-alone server is not a domain controller and does not
participate in a domain in any way.
Step-1: To
configure Samba as a Stand-alone server on windows platform, then edit the
smb.conf file as like below.
[root@srv1 ~]# vi /etc/samba/smb.conf
#======================= Global
Settings =========================
# ----------------------- Network
Related Options -------------------------
workgroup = ALPHABD
server
string = Stand-alone Server
netbios
name = srv1
hosts allow
= 127. 210.207.201.
# ---------------------------
Logging Options -----------------------------
log file = /var/log/samba/%m.log
max log
size = 1000
# -------------------- Standalone
Server Options -------------
security = user
passdb
backend = tdbsam
encrypt
password = yes
#----------------------------- Name
Resolution -------------------------------
wins support = yes
#========================== Share
Definitions ======================
; [homes]
; comment = Home
Directories
; browseable = yes
; writable = yes
; valid users = %S
; valid users =
ALPHABD\%S
[Resources]
comment =
All Resources for ALPHABD
browseable
= yes //shares will appear or not in My
Network Places.
path =
/opt/Resources
public = no
writable =
no
printable =
no
guest ok =
no
read only =
yes
fource
group = samba-users
fource user
= Administrator root
write list
= +samba-users
valid users
= samba-users
# Use this lines if you want members of that group but not
others to be able to read or write files and folder in this share.
create mask = 0770
force
create mode = 0660
directory
mask = 0770
force
directory mode = 0770
[public]
comment =
Anonymous user Accessible Directory
path =
/opt/Public
public =
yes
writable =
yes
printable =
no
write list
= +anonymous
Guest only
= no
Guest ok =
yes
Guest
account = guest nobody
no password
= yes
valid users
= anonymous-users