OracleEnterpriseLinux上搭建samba服务器

安装samba软件包

[root@BJRAC ~]# yum install samba*
Loaded plugins: security
base                                                                                                                   | 3.7 kB     00:00 ... 
Setting up Install Process
Package samba-common-3.5.10-125.el6.x86_64 already installed and latest version
Package samba-winbind-clients-3.5.10-125.el6.x86_64 already installed and latest version
Package samba-client-3.5.10-125.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package samba.x86_64 0:3.5.10-125.el6 will be installed
---> Package samba-winbind.x86_64 0:3.5.10-125.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
 Package                              Arch                          Version                                 Repository                   Size
==============================================================================================================================================
Installing:
 samba                                x86_64                        3.5.10-125.el6                          base                        5.0 M
 samba-winbind                        x86_64                        3.5.10-125.el6                          base                        3.5 M

Transaction Summary
==============================================================================================================================================
Install       2 Package(s)

Total download size: 8.5 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                          25 MB/s | 8.5 MB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : samba-winbind-3.5.10-125.el6.x86_64                                                                                        1/2 
  Installing : samba-3.5.10-125.el6.x86_64                                                                                                2/2 
  Verifying  : samba-3.5.10-125.el6.x86_64                                                                                                1/2 
  Verifying  : samba-winbind-3.5.10-125.el6.x86_64                                                                                        2/2 

Installed:
  samba.x86_64 0:3.5.10-125.el6                                     samba-winbind.x86_64 0:3.5.10-125.el6                                    

Complete!
[root@BJRAC ~]# 

启动samba服务

[root@BJRAC ~]# /etc/init.d/smb start
Starting SMB services:                                     [  OK  ]

查看smb服务运行情况

[root@BJRAC ~]# /etc/init.d/smb status
smbd (pid  1697) is running...

配置smb服务在开机时自动启动(级别35)

[root@BJRAC ~]# chkconfig --level 35 smb on

二、samba服务器配置

参考文章

原文地址:https://www.cnblogs.com/arcer/p/3552215.html