---
title: "samba使用总结"
author: "pcpig"
date: "2013-09-10T14:17:16Z"
tags: []
categories: ["开源软件"]
slug: "samba"
draft: false
lastmod: "2013-09-10T14:17:16Z"
id: 1940079
url: "https://pcpig.iteye.com/blog/1940079"
---

1、安装
   #rpm -qa | grep samba
   #yum install samba

2、配置
   cat /etc/samba/smb.conf 
   
```java

[global]
workgroup = workgroup
server string = samba server
security = user
map to guest = bad user

[resources]
comment = public stuff
path = /opt/share/resources
public = yes
only guest = yes
writable = yes
guest ok = yes

#[porject]
#path = /opt/Porject
#public = no
#only guest = no
#writable = yes
```


3、启动
service smb start

4、加入开机自动启动
chkconfig --level 3 smb on