---
title: "ubuntu 配置samba ， 与xp共享文件"
author: "csstome"
date: "2011-05-02T14:59:00Z"
tags: []
slug: "ubuntu-samba-xp"
draft: false
lastmod: "2011-05-02T14:59:00Z"
id: 1060142
url: "https://csstome.iteye.com/blog/1060142"
---

1 安装samba

\# sudo apt-get insall samba

\# sudo apt-get install smbfs

2 编辑配置 /etc/samba /smb.conf

\[global] 添加 client lanman = yes

修改注释 user = share

添加：

\[share]  
path = /home/username/share  
available = yes  
browsealbe = yes  
public = yes  
writable = yes

3创建samba帐户

#sudo touch /etc/samba /smbpasswd  
#sudo smbpasswd -a USERNAME

4 本地测试

smbclient -L //localhost/share

5 windows xp

输入 \\\\ip\\share