时间:2021-05-25
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。
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
linux中samba服务器的安装及其配置,供大家参考,具体内容如下第一步:下载samba命令:apt-getinstallsambaapt-getinstal
硬盘已安装Fedora8Linux系统,并安装grub引导管理程序,现要在这个硬盘的空闲分区中安装Fedora9,操作如下:DVD.iso文件放到一个Windo
Fedora5下配置MySQL(很有参考价值的MySQL资料包括如何在linux文件系统移动MySQL数据库的位置)一、下载MySQL安装文件完全安装MySQL
VNC连接Linux桌面,要想连接Linux远程桌面,按照下面的步骤,非常简单、快速,Linux配置VNC(以RedHat、CentOS、Fedora系列为例)
Ubuntu下配置samba实现文件夹共享一.samba的安装:sudoapt-getinsallsambasudoapt-getinstallsmbfs二.创