samba 安装运行

samba 安装步骤


1.若之前有安装过相关软件包,先卸载之:
sudo apt-get autoremove samba samba-common
sudo apt-get autoremove system-config-samba

按如下方式安装软件包
sudo apt-get install samba samba-common
sudo apt-get install system-config-samba cifs-utils


2. 配置相关参数
sudo gedit /etc/samba/smb.conf

[global]
; create workup
security = share
; is not guest invite
guest ok = yes
[share]
path=/home/zy
; read
writable = yes

3. sudo useradd zy
给添加的帐户设置登录密码: sudo smbpasswd -a zy
在新建立的文件内加入下面这一行并保存:
zy = "network username"

4. 重启samba:
sudo /etc/init.d/samba restart

posted @ 2014-07-20 22:46  superPerfect  阅读(276)  评论(0编辑  收藏  举报