当前位置:网站首页>samba服务器搭建指南
samba服务器搭建指南
2022-07-28 14:38:00 【丨刘一丨】
一:samba搭建和配置
安装samba软件
sudo apt-get install system-config-samba -y重新启动samba服务
sudo /etc/init.d/samba restart
或者
sudo /etc/init.d/smbd restart && sudo /etc/init.d/nmbd restart配置相关共享目录(这里配置work目录)
sudo vim /etc/samba/smb.conf
[work]
comment = share folder
browseable = yes
read only = no
path = /home/ubuntu/work
create mask = 0777
directory mask = 0777
valid users = liujiaxing
write list = @ubuntu
public = yes
available = yes
二:问题汇总
- windows上映射网络驱动器有问题
重新安装libtalloc2
sudo apt-getremove samba libtalloc2
sudo apt-get autoremove
sudo apt-get install samba libtalloc2
如果安装不上 先安装 sudo apt-get install aptitude
之后sudo aptitude install libtalloc2
- 共享目录权限问题
a. 创建samba用户
sudo useradd liujiaxing
sudo passwd liujiaxing
smbpasswd -a liujiaxing
b. 通过以下命令将samba用户liujiaxing添加到组ubuntu里面
(具体属于哪个组需要自行检查一下)
sudo usermod -g ubuntu liujiaxing
接下来配置samba的smb.conf文件。
sudo vim /etc/samba/smb.conf
[work]
comment = share folder
browseable = yes
read only = no
path = /home/ubuntu/work
create mask = 0777
directory mask = 0777
valid users = liujiaxing
write list = @ubuntu
public = yes
available = yes
边栏推荐
- 1. Author of the open source GPS project hd-gr GNSS
- Easy start, swagger
- How to write a JMeter script common to the test team
- Matlab导出高清图片、且Word中压缩不失真、转换PDF不失真
- Opencv - draw mask images of multiple instances
- 9、相关数据累积任务定义
- MIT指出公开预训练模型不能乱用
- Back compilation failed
- Matlab does not overwrite importing Excel
- sql语句的执行流程
猜你喜欢

【通道注意力机制】SENet

Daily question (retrospective)

800V high voltage system

Explain the difference set, intersection set and union set of complex type set in detail.Net

EasyExcel复杂表头导出(一对多)

day 7/12

ECCV 2022 | SSP: 自支持匹配的小样本任务新思想

DAY:7/11

About how Simulink generates model coverage reports

Flowable workflow all business concepts
随机推荐
Configure CX Oracle solution (cx_oracle.databaseerror) dpi-1047: cannot locate a 64 bit Oracle client library: "th
Close independent windows and close other windows at the same time
flowable工作流所有业务概念
10. Implementation of related data accumulation task
Introduction to grpc
Ffmpeg notes
Qt信号与槽的五种连接方式
Shellcode writing learning environment
Grpc frequently asked questions
提速1200倍!MIT开发新一代药物研发AI,吊打老模型
Encapsulate the unified return object messageresult
19、通道分配任务定义
Vs usage skills
1、开源GPS项目HD-GR GNSS的著作者
2021-06-29
关于word文档中插入的图片只显示下面一部分
使用Mock技术帮助提升测试效率的小tips,你知道几个?
Volatile principle
Among the three "difficult and miscellaneous diseases" of machine learning, causal learning is the breakthrough | Liu Li, Chongqing University
Easyexcel complex header export (one to many)