2008年11月6日

[Linux] Samba on Fedora Core 8

Step 0. Samba Package
samba
samba-client
samba-common


Step 1.
Install Samba
#yum install samba


Step 2.
Configuration
#vi /etc/samba/smb.conf

I. Security Level: Anonymous access
# ==== Global Settings =======
security = share
# ==== Share Definitions =====
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes


II. Security Level: User authentication
# ==== Global Settings =======
security = user
passdb backend = tdbsam
# ==== Share Definitions =====
[homes]
comment = Home Directories
browseable = yes
writable = yes
;valid users = %S
;valid users = MYDOMAIN\%S


Step 3. Parse smb.conf setting in Step 2.
#testparm

Step 4. New a Samba User
(Samba user must be a existing acount)
#useradd SambaUserName
#pdbedit -a SambaUserName

Step 4. Restart Samba Service
#/etc/rc.d/init.d/smb restart

Reference
http://www.mtm.ks.edu.tw/computer/FC5/#samba
http://blog.yam.com/iq180/article/13382018
http://b2d.phc.edu.tw/modules/tadbook2/view.php?book_sn=12&bdsn=697
http://phorum.study-area.org/index.php?action=printpage;topic=53332.0

沒有留言: