服务器之家:专注于服务器技术及软件下载分享
分类导航

Linux|Centos|Ubuntu|系统进程|Fedora|注册表|Bios|Solaris|Windows7|Windows10|Windows11|windows server|

服务器之家 - 服务器系统 - Fedora - Fedora Linux 8系统下配置SAMBA

Fedora Linux 8系统下配置SAMBA

2019-10-11 14:56脚本之家 Fedora

Fedora Linux 8系统下配置SAMBA

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。

延伸 · 阅读

精彩推荐
  • FedoraUbuntu和Fedora上通过图形化界面或源码安装软件包的方法

    Ubuntu和Fedora上通过图形化界面或源码安装软件包的方法

    这篇文章主要介绍了Ubuntu和Fedora上通过图形化界面或源码安装软件包的方法,Ubuntu和Fedora分别是Debian系和CentOS系Linux系统中自带桌面环境比较优秀的代表,需要...

    开源中文社区5212019-10-17
  • FedoraFC7中用yum自动搜索安装软件

    FC7中用yum自动搜索安装软件

    有些包在http://rpm.livna.org上,要先安装http://rpm.livna.org/livna-release-7.rpm这个包才能用yum安装 #yum install stardict mplayer gftp zip unrar multiget azureus amsn wine gnochm 不过...

    fedora教程网4832019-10-12
  • FedoraFC8下备份linux系统

    FC8下备份linux系统

    linux系统可以使用tar来备份。 我在FC8上装好了totem, mplayer, audacious, 并搞定了wifi后,我觉得该备份一下FC8系统。 IBM R31+TP-LINK 310G Windows XP+FC8 备份前在FC8下卸...

    脚本之家4282019-10-12
  • FedoraSamba中文显示乱码解决办法

    Samba中文显示乱码解决办法

    Samba显示中文乱码,添加下面的内容到smb.conf中 client code page = 936 dos charset = cp936 unix charset = cp936...

    脚本之家4112019-10-14
  • Fedorafedora7下共享上网

    fedora7下共享上网

    家里有2台机器,一台linux,一台xp,为了共享上网,linux作为主机,我安装的是fc7,下载firestarter,安装这个之前安装xmlparser。安装好了后,出来一个界面配...

    fedora教程网4332019-10-12
  • FedoraFedora20 32位系统中安装搜狗拼音输入法图文教程

    Fedora20 32位系统中安装搜狗拼音输入法图文教程

    这篇文章主要介绍了Fedora20 32位系统中安装搜狗拼音输入法图文教程,64位系统有一个RPM包可以直接安装,32位系统没有,所以要手动安装,需要的朋友可以参考下...

    Fedora技术网6102019-10-16
  • Fedorafedora8 linux挂载DVD光盘或ISO镜像为源的方法

    fedora8 linux挂载DVD光盘或ISO镜像为源的方法

    1、先挂载DVD光盘或ISO镜像文件 2、修改/etc/yum.repos.d/fedora.repo 用root权限修改/etc/yum.repos.d/fedora.repo,原文件的第一部分如下: [fedora] name=Fedora $releasever - $b...

    fedora教程网5802019-10-14
  • Fedora如何在 Fedora Linux 上安装 Brave 浏览器

    如何在 Fedora Linux 上安装 Brave 浏览器

    在本教程中,你将学习如何在 Fedora Linux 上安装 Brave。你还将学习如何更新和删除它。...

    Linux中国4552021-11-29