ubuntu安装samba

  1. Samba软件安装
    apt-get install samba
  2. Samba客户端安装
    apt-get install smbclient
  3. Samba启动
    /etc/init.d/samba start
    service samba start
  4. Samba关闭
    /etc/init.d/samba stop
    service samba stop
  5. Samba重启
    /etc/init.d/samba restart
    service samba restart
  6. Samba服务查看
    ps -aux
  7. 备份Samba配置文件
    cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
  8. 将文件中的内容做如下相应修改:
    #security=user 后面添加:security=share
    在文件结尾添加如下行:
[share]
  comment=this is Linux share
 directorypath=/home/myth/share
 public=yes
 writable=yes
  1. 添加samba用户
    sudo smbpasswd -a qina
    输入密码后即可使用

你可能感兴趣的:(ubuntu安装samba)