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

Linux服务器
linuxsambauser共享方式配置
vsFTPd服务器和防火墙及SELINUX关系
探查Linux系统DNS服务器运行状况
Solaris10下DNS服务器安全攻略
实例:保障UbuntuApacheWeb服务器安全
SUSE下使用SAMBA建立文件服务器
Linux服务器常出现错误及代表含义
LinuxSambauser共享方式配置方法介绍
Debian和UbuntuLinux的NFS配置介绍
Linux服务器实时监控加载硬件信息
Solaris工作站常用下载工具推荐(下)
Linux系统服务器的存储空间巧妙管理
SUSELinux下用SAMBA建立文件服务器
Tor中继服务器在Linux里安装配置的流程
Linux服务器维护统计连接数查看外部IP
Linux系统邮件服务器的搭建过程解析
在CentOS下安装配置VNC的过程
OpenSUSE下使用SAMBA建立文件服务器
配置记录FTP传输情况的LinuxFTP服务器
Linux系统下DNS服务器的架设

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 41 ::
收藏到网摘: 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.