FedoraLinux8配置SAMBA服务的过程
2009-05-13 01:36:04来源:未知 阅读 ()
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.
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
- 树莓派4 (8GB) RaspiOS 64 bit 入手配置流程 2020-06-10 2020-06-11
- windows10安装配置WSL(Ubuntu) 2020-06-07
- 如何监控 Linux 服务器状态? 2020-06-06
- 简单安装配置samba服务器 2020-06-03
- MPI 本地局域网运行多机配置,同时运行多个程序; 2020-06-02
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash