最近总是在搭建 samba 环境,写在笔记上记录下以备后用,长时间不操作了肯定会忘记。

Linux 版本:Ubuntu 18.04

具体的操作命令:

1. 安装:
  sudo apt-get install samba 2. 修改配置文件:
  sudo vim /etc/samba/smb.conf 3. 具体修改内容如下:   [samba]
  comment = Users profiles
  path = "共享路径,如: /home"
  guest ok = no
  browseable = yes
  writable = yes
  create mask = 0766
  directory mask = 0766   #[printers]
  # comment = All Printers
  # browseable = no
  # path = /var/spool/samba
  # printable = yes
  # guest ok = no
  # read only = yes
  # create mask = 0700   # Windows clients look for this share name as a source of downloadable
  # printer drivers
  #[print$]
  # comment = Printer Drivers
  # path = /var/lib/samba/printers
  # browseable = yes
  # read only = yes
  # guest ok = no 4. 添加 samba 用户:
  smbpasswd -a "用户名" 5. 重启 samba 服务器:
  sudo /etc/init.d/smbd restart

至此,samba 服务器配置成功,在 windows 下即可以 \\samba IP 的形式进行访问,如在我的电脑的地址栏填入 \\192.168.125.128,随后进入到 samba 的共享目录,验证的帐号密码即如配置步骤 4 所设。

最新文章

  1. iOS 改变App状态栏颜色为白色
  2. mybatis的一些小总结
  3. 简单介绍一下R中的几种统计分布及常用模型
  4. R语言-实用数据对象处理函数
  5. 水果姐逛水果街Ⅱ codevs 3305
  6. POS机刷卡跨行交易的清算方式
  7. SQLChop、SQLWall(Druid)、PHP Syntax Parser Analysis
  8. isAnimated函数
  9. 昂贵的聘礼---poj1062(最短路)
  10. 表单美化-原生javascript和jQuery下拉列表(兼容IE6)
  11. [Angular 2] Transclusion in Angular 2
  12. jquery navi
  13. sqlserver 2000新建sysadmin角色
  14. WebService使用入门(包括发布服务,调用服务)
  15. [js高手之路]使用原型对象(prototype)需要注意的地方
  16. markdown使用小结
  17. python访问http的GET/POST
  18. 再谈包访问权限 子类为何不能使用父类protected方法
  19. Linux基础学习(全)
  20. query string parameters 、 Form Data 、 Request Payload

热门文章

  1. jQuery 遍历 - 过滤
  2. vscode——常用插件记录
  3. 代码中的mysql语法问题
  4. 文件搜索命令find
  5. vue关于keep-alive的小坑
  6. 【cf contest 1119 G】Get Ready for the Battle
  7. 解决IE报错:Locale 'chinese' is not well-formed,或RangeError: 区域设置“chinese”的格式不正确的问题
  8. Linux 上配置 AG
  9. 帝国CMS排行榜调用标签
  10. Cannot read property '_withTask' of undefined