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

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。

延伸 · 阅读

精彩推荐
  • FedoraFedora 33开始测试切换到Btrfs

    Fedora 33开始测试切换到Btrfs

    尽管距离 Fedora 的下一个稳定版本(Fedora 33)还有几个月的距离,但仍有一些值得关注的变化。在所有其他 Fedora 33 接受的系统范围的更改中,最有趣的提议...

    Linux中国3392020-07-27
  • FedoraFedora 35 将搭载 LLVM 13 和 Go 1.17

    Fedora 35 将搭载 LLVM 13 和 Go 1.17

    Fedora工程和指导委员会 (FESCo) 批准了将于秋季发布的 Fedora 35 的一些额外变更。...

    开源中国6002021-08-19
  • Fedora阿里云购买镜像服务器

    阿里云购买镜像服务器

    阿里云 作为国内的领先云计算服务提供商,为用户提供了各种可靠、高效的云计算产品,其中就包括镜像服务器。镜像服务器是一个非常优秀的解决方案,...

    未知1342023-06-02
  • Fedorafedora8 下mysql 安装的安装方法

    fedora8 下mysql 安装的安装方法

    fedora8 下mysql 安装的安装方法...

    fedora教程网6422019-10-14
  • Fedora阿里云服务器配置低选择什么系统比较好

    阿里云服务器配置低选择什么系统比较好

    在选择阿里 云服务器 时,除了考虑服务器的大小和价格,还需要考虑哪个操作系统最适合该服务器。操作系统是服务器的基础,因为它提供了一个框架,...

    未知1152023-05-10
  • FedoraHostwinds教程:如何在Fedora上安装Docker

    Hostwinds教程:如何在Fedora上安装Docker

    docker 是一个开源应用容器引擎,以类似于虚拟机但不虚拟化的方式在自包含的环境中创建相关应用程序和服务。您可以在多个平台上下载并安装Docker,比如...

    未知1232023-05-09
  • Fedora【转载】fedora22和win10之间的文件共享互访

    【转载】fedora22和win10之间的文件共享互访

      钢铁侠与孔子  关注 2016.06.04 14:10*  字数 1327  阅读 2170 评论 0 喜欢 1  一,相关知识了解(本文执行环境为fedora22和win10) 在局域网内windows系统之间共享...

    未知872023-05-09
  • Fedorafedora phpMyAdmin 安装方法及介绍

    fedora phpMyAdmin 安装方法及介绍

    在安装fedora的时候,把基本该选择的组件都选上,其中就有Appache,mysql,和php,但是在我们管了数据库的时候,还是有个图形界面比较方便,所以我们自己...

    fedora教程网5742019-10-15