当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > FedoraLinux8配置SAMBA服务的过程

Linux服务器
让使用Apache的网站速度更快
LINUX下代理服务器的架设
Linux服务器系统内存监控方法详解
Linux系统下的动态DNS服务配置方法详解
配置DNS辅助域名和子域名服务器
apacheTomcat服务器配置
Linux服务器前台常见错误提示及含意
Squid反向代理若干个后台的WEB实现说明
Linux服务器下多网卡负载均衡的研究
Apache源代码全景分析:网络地址处理
Linux与Unix比较Ftp/Telnet服务配置
配置Solaris的Samba服务器
分享UbuntuLinux上边的CVS服务器配置
Linux操作系统下VPN服务器的配置方法介绍
Linux系统Qmail邮件服务器安装过程解析
Linux操作系统下PHP服务器安全配置技巧
VSFTPd自架Linux网络服务器方法
成功进行CVS服务器的配置与测试
准备用CentOS做Linux服务器
Apache服务器虚拟主机设置技术深入解析

Linux服务器 中的 FedoraLinux8配置SAMBA服务的过程


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 42 ::
收藏到网摘: n/a

1、使用yum命令来安装或更新你的SAMBA包。
 
yuminstallsamba
 
2、samba的配置文件在如下
 
/etc/samba/smb.conf
 
修改其配置如下:
 
#=======================GlobalSettings=====================================[global]#-----------------------NetwrokRelatedOptions-------------------------##workgroup=NT-Domain-NameorWorkgroup-Name,eg:MIDEARTH##serverstringistheequivalentoftheNTDescriptionfield##netbiosnamecanbeusedtospecifyaservernamenottiedtothehostname##InterfacesletsyouconfigureSambatousemultipleinterfaces#Ifyouhavemultiplenetworkinterfacesthenyoucanlisttheones#youwanttolistenon(neveromitlocalhost)##HostsAllow/HostsDenyletsyourestrictwhocanconnect,andyoucan#specifiyitasapershareoptionaswell#workgroup=robinserverstring=MYSERVERnetbiosname=MYSERVER;hostsallow=127.192.168.#---------------------------LoggingOptions-----------------------------##LogFileletyouspecifywheretoputlogsandhowtosplitthemup.##MaxLogSizeletyouspecifythemaxsizelogfilesshouldreach#logssplitpermachinelogfile=/var/log/samba/log.%m#max50KBperlogfile,thenrotatemaxlogsize=50#-----------------------StandaloneServerOptions------------------------##Scuritycanbesettouser,share(deprecated)orserver(deprecated)##Backendtostoreuserinformationin.Newinstallationsshould#useeithertdbsamorldapsam.smbpasswdisavailableforbackwards#compatibility.tdbsamrequiresnofurtherconfiguration.security=share;encryptpasswords=yesguestok=yesguestaccount=root#============================ShareDefinitions==============================[homes]comment=HomeDirectoriesbrowseable=nowritable=yes;validusers=%S;validusers=MYDOMAIN\%S[printers]comment=AllPrinterspath=/var/spool/sambabrowseable=no;guestok=no;writable=Noprintable=yes#Un-commentthefollowingandcreatethenetlogondirectoryforDomainLogons;[netlogon];comment=NetworkLogonService;path=/var/lib/samba/netlogon;guestok=yes;writable=no;sharemodes=no#Un-commentthefollowingtoprovideaspecificrovingprofileshare#thedefaultistousetheuser'shomedirectory;[Profiles];path=/var/lib/samba/profiles;browseable=no;guestok=yes#Apubliclyaccessibledirectory,butreadonly,exceptforpeoplein#the"staff"group;[public];comment=PublicStuff;path=/home/samba;public=yes;writable=yes;printable=no;writelist=+staff[temp]path=/root/tempwriteable=yes;browseable=yesguestok=yes

 3、重启SAMBA服务
 
/etc/init.d/smbrestart
 
4、Enjoy
 
PS:FedoraCore从V2起都有预装SELinux,这个不会配置的可以先把她关掉,关闭的方法如下:
 
修改/etc/selinux/config文件中的SELINUX=""为disabled,然后重启FC.