当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Fedora Linux 8系统下配置SAMBA

Unix/Linux
怎样设置一个档案来作为 linux 的转换空间?
全文替换以修改档案方法
如何删除档案中的重复的行
/dev下 cua*被删除,该如何恢复?
/dev/tty0不见了怎麽救回来?
Linux 网管 123 --- 第4章. 安装及硬体组态 - 2.启动 Linux 安装
Linux 网管 123 --- 第4章. 安装及硬体组态 - 3.分割硬碟机
Linux 网管 123 --- 第4章. 安装及硬体组态 - 4.设定Swap格式化Pa
Linux 网管 123 --- 第4章. 安装及硬体组态 - 5.选择想要安装的套件
Linux 网管 123 --- 第4章. 安装及硬体组态 - 6.硬体组态
Linux 网管 123 --- 第4章. 安装及硬体组态 - 7.从 LILO 启动
Linux 网管 123 --- 第4章. 安装及硬体组态 - 8.下载及安装 Red H
Linux 网管 123 --- 第5章. 组态 X Window 系统 -1.使用 X-
Linux 网管 123 --- 第5章. 组态 X Window 系统 -2.使用 X
Linux 网管 123 --- 第5章. 组态 X Window 系统 -3.改善X下的
Linux 网管 123 --- 第5章. 组态 X Window 系统 -4.选择 X
Linux 网管 123 --- 第5章. 组态 X Window 系统 -5.GNOME
Linux 网管 123 --- 第5章. 组态 X Window 系统 -6.KDE 的
Linux 网管 123 --- 第6章. 一般系统管理问题 -1.Root 帐号
Linux 网管 123 --- 第6章. 一般系统管理问题 -2.建立使用者帐号

Unix/Linux 中的 Fedora Linux 8系统下配置SAMBA


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 132 ::
收藏到网摘: n/a

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。