在Fedora Linux 8系统上配置SAMBA服务器的完整教程
首先,通过 yum 安装 Samba 是最直接且高效的初始步骤。 yum install samba 安装完成后,配置文件位于 etc samba smb conf。接下来,您需要手动编辑该文件,并将以下配置内容粘贴进去——请注意,大部分注释仅为说明,核心参数已在下方明确标注。 ========
首先,通过 yum 安装 Samba 是最直接且高效的初始步骤。
yum install samba
安装完成后,配置文件位于 /etc/samba/smb.conf。接下来,您需要手动编辑该文件,并将以下配置内容粘贴进去——请注意,大部分注释仅为说明,核心参数已在下方明确标注。
#======================= Global Settings ===================================== [global] # ----------------------- Netwrok Related Options ------------------------- # # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH # # server string is the equivalent of the NT Description field # # netbios name can be used to specify a server name not tied to the hostname # # Interfaces lets you configure Samba to use multiple interfaces # If you ha ve multiple network interfaces then you can list the ones # you want to listen on (never omit localhost) # # Hosts Allow/Hosts Deny lets you-restrict who can connect, and you can # specifiy it as a per share option as well # workgroup = robin server string = MYSERVER netbios name = MYSERVER ; hosts allow = 127. 192.168. # --------------------------- Logging Options ----------------------------- # # Log File let you specify where to put logs and how to split them up. # # Max Log Size let you specify the max size log files should reach # logs split per machine log file = /var/log/samba/log.%m # max 50KB per log file, then rotate max log size = 50 # ----------------------- Standalone Server Options ------------------------ # # Scurity can be set to user, share(deprecated) or server(deprecated) # # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is a vailable for backwards # compatibility. tdbsam requires no further configuration. security = share ; encrypt passwords = yes guest ok = yes guest account = root #============================ Share Definitions ============================== [homes] comment = Home Directories browseable = no writable = yes ; valid users = %S ; valid users = MYDOMAIN\%S [printers] comment = All Printers path = /var/spool/samba browseable = no ; guest ok = no ; writable = No printable = yes # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service ; path = /var/lib/samba/netlogon ; guest ok = yes ; writable = no ; share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ; [Profiles] ; path = /var/lib/samba/profiles ; browseable = no ; guest ok = yes # A publicly accessible directory, but read only, except for people in # the "staff" group ; [public] ; comment = Public Stuff ; path = /home/samba ; public = yes ; writable = yes ; printable = no ; write list = +staff [temp] path = /root/temp writeable = yes ; browseable = yes guest ok = yes
配置修改完毕后,请重启 Samba 服务以使新配置生效:
/etc/init.d/smb restart
至此,配置完成。您可以开始使用 Samba 服务进行文件共享了。
补充一点:Fedora Core 从 V2 版本起便默认预装了 SELinux。如果您不打算对其进行详细配置,最简单的方式是将其临时关闭。具体操作是,编辑 /etc/selinux/config 文件,将 SELINUX="" 的值修改为 disabled,随后重启系统使更改生效。
游乐网为非赢利性网站,所展示的游戏/软件/文章内容均来自于互联网或第三方用户上传分享,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系youleyoucom@outlook.com。
同类文章
VMware 10虚拟机安装Mac OS X 10.9系统的完整图文详解步骤教程
在VMware10上安装MacOSX10 9无需U盘,全部在硬盘操作。步骤包括安装VMware及MacOS补丁、解压并转换InstallESD dmg和BaseSystem dmg为ISO、创建虚拟机并挂载ISO引导,通过磁盘工具分区、终端命令恢复系统文件,重启后完成配置。整个过程需注意补丁安装及文件路径。
lsass.exe是什么?详解进程作用与安全风险
lsass exe(本地安全认证进程)是Windows系统中负责身份验证的核心组件。当用户登录时,Winlogon服务会将密码传递给lsass exe进行校验,若验证通过,系统会生成一个访问令牌,从而允许启动桌面、资源管理器等程序。简单来说,lsass exe就像Windows系统的“安检员”,只有
一文看懂搜狗输入法SGImeGuard.exe进程是什么及其作用
电脑任务管理器里突然出现一个名为SGImeGuard exe的进程,是不是觉得有点陌生?别担心,这其实是搜狗输入法自带的附属程序,安装输入法后它就会自动运行。很多人看到不认识的进程都会心里犯嘀咕,今天我们就来把它彻底讲清楚。 SGImeGuard exe 是什么? 简单来说,它是搜狗输入法的一个辅助
最全adb.exe进程与命令详解从入门到精通完整教程
ADB(Android Debug Bridge)入门指南:安装配置与常用命令详解 ADB,全称Android Debug Bridge(安卓调试桥),是Android SDK中内置的一款实用工具。简单来说,它就像一座桥梁,让你能够通过电脑直接操控已连接的Android模拟器或真实设备。无论是早期的
avgamsvr.exe进程是什么文件及是否安全
当你在任务管理器中看到名为a vgamsvr exe的进程时,不必惊慌——它正是AVG反病毒套装的核心运行组件。该进程的全称为A VG Anti-Virus Scanner Service,由老牌安全厂商Grisoft出品。简单来说,它是一个在后台持续提供实时病毒防护的守护服务,专门针对病毒、间谍软
- 热门数据榜
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
相关攻略
2026-07-17 16:36
2026-07-17 16:35
2026-07-17 16:35
2026-07-17 16:35
2026-07-17 16:35
2026-07-17 16:04
2026-07-17 16:04
2026-07-17 16:03
热门教程
- 游戏攻略
- 安卓教程
- 苹果教程
- 电脑教程

