ubuntu samba 服务器搭建
2024-08-31 01:36:31
最近总是在搭建 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 所设。
最新文章
- iOS 改变App状态栏颜色为白色
- mybatis的一些小总结
- 简单介绍一下R中的几种统计分布及常用模型
- R语言-实用数据对象处理函数
- 水果姐逛水果街Ⅱ codevs 3305
- POS机刷卡跨行交易的清算方式
- SQLChop、SQLWall(Druid)、PHP Syntax Parser Analysis
- isAnimated函数
- 昂贵的聘礼---poj1062(最短路)
- 表单美化-原生javascript和jQuery下拉列表(兼容IE6)
- [Angular 2] Transclusion in Angular 2
- jquery navi
- sqlserver 2000新建sysadmin角色
- WebService使用入门(包括发布服务,调用服务)
- [js高手之路]使用原型对象(prototype)需要注意的地方
- markdown使用小结
- python访问http的GET/POST
- 再谈包访问权限 子类为何不能使用父类protected方法
- Linux基础学习(全)
- query string parameters 、 Form Data 、 Request Payload
热门文章
- jQuery 遍历 - 过滤
- vscode——常用插件记录
- 代码中的mysql语法问题
- 文件搜索命令find
- vue关于keep-alive的小坑
- 【cf contest 1119 G】Get Ready for the Battle
- 解决IE报错:Locale 'chinese' is not well-formed,或RangeError: 区域设置“chinese”的格式不正确的问题
- Linux 上配置 AG
- 帝国CMS排行榜调用标签
- Cannot read property '_withTask' of undefined