分类: LINUX
2013-06-05 14:34:44
原文地址:ubuntu10.04 安装samba 作者:leon_yu
1. 安装
$ sudo apt-get install samba
$ sudo apt-get install samba-common
$ sudo apt-get install samba-common-bin
$ sudo apt-get install system-config-samba
2. 配置
$ sudo system-config-samba (添加你要共享的目录就可以了)
或者通过配置文件,修改/etc/samba/smb.conf
[leon]
path = /Project/leon
available = yes
browsable = yes
#public = yes
create mask = 0664
directory mask = 0775
writable = yes
valid users = leon
[target]
path = /home/target
available = yes
browsable = yes
#public = yes
writable = yes
valid users = leon,@leon_yu
[public]
path = /home/public
available = yes
browsable = yes
public = yes
writable = yes
guest ok = yes
3.修改samba密码
sudo smbpasswd -a leon
4. 启动
$ sudo smbd start
5.从ubuntu访问其他机器共享目录。
Ctrl+l,然后输入smb://192.168.xx.xxx.