FreedomWing 自由翼

作者: LaughWOLVES
查看: 5356|回复: 3

more +随机图赏Gallery

宝宝多大才能吃盐宝宝多大才能吃盐
孩子有5种表现,说明家长把他宠坏了孩子有5种表现,说明家长把他宠坏了
Windows10(Win10) 官方下载镜像制作U盘系统启动盘Windows10(Win10) 官方下载镜像制作U盘系统启动盘
Ragnarok Battle Offline 角色详细出招及系统说明Ragnarok Battle Offline 角色详细出招及系统说明
宝宝的各种便便解析宝宝的各种便便解析
“中国式礼貌”正在一步一步毁掉孩子,家长们还在沾沾自喜吗?“中国式礼貌”正在一步一步毁掉孩子,家长们还在沾沾自喜吗?

[转帖] Fedora Linux 8配置SAMBA服务的详细过程

[转帖] Fedora Linux 8配置SAMBA服务的详细过程

[复制链接]
LaughWOLVES | 显示全部楼层 发表于: 2008-1-28 17:53
LaughWOLVES 发表于: 2008-1-28 17:53 | 显示全部楼层 |阅读模式
查看: 5356|回复: 3
来源:赛迪网    作者:sixth


1、使用yum命令来安装或更新你的SAMBA包。

yum install samba

2、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 have 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 available 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


3、重启SAMBA服务

/etc/init.d/smb restart


4、Enjoy


PS:Fedora Core从V2起都有预装SELinux,这个不会配置的可以先把她关掉,关闭的方法如下:


修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启FC。


(责任编辑:云子)
suxxx | 显示全部楼层 发表于: 2008-1-29 01:12
suxxx 发表于: 2008-1-29 01:12 | 显示全部楼层
哎呀,我喜欢,学习学习~~~~~~~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|FreedomWing 自由翼    

GMT+8, 2019-12-14 04:51 , Processed in 0.167555 second(s), 8 queries , File On.

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表