当前位置:网站首页>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
边栏推荐
- Qt刷新UI界面问题
- Encapsulate the unified return object messageresult
- Matlab exports high-definition pictures without distortion in word compression and PDF conversion
- About how Simulink generates model coverage reports
- How to write a JMeter script common to the test team
- Heuristic merging simple problem on tree
- 1. Author of the open source GPS project hd-gr GNSS
- day 7/12
- 【通道注意力机制】SENet
- Set structure byte alignment
猜你喜欢

ECCV 2022 | ssp: a new idea of small sample tasks with self-supporting matching

Self cultivation of programmers

NFTScan 与 NFTPlay 在 NFT 数据领域达成战略合作

800V high voltage system

Compilation learning

MySQL 8.0 common (continuous update)

Endnote is associated with word

Shellcode writing (unfinished)
![[jspwiki]jspwiki installation deployment and configuration](/img/3c/81a201bb80dcbb17d1c97b1a5bb215.png)
[jspwiki]jspwiki installation deployment and configuration

基于RSocket协议实现客户端与服务端通信
随机推荐
22、电文处理任务实现
【通道注意力机制】SENet
[delete specified number leetcode]
Endnote is associated with word
如何获取及嵌入Go二进制执行包信息
提速1200倍!MIT开发新一代药物研发AI,吊打老模型
Summary of common redis commands (self provided)
Opencv - draw mask images of multiple instances
Editor in ArcGIS Pro
Self cultivation of programmers
About the pictures inserted in the word document, only the following part is displayed
Celery related
Matlab does not overwrite importing Excel
Multithreading
Svg verification code recognition experience
9、相关数据累积任务定义
ArcGIS Pro 中的编辑器
Rongyun real-time community solution
2. Self narration of open source GPS project hd-gr GNSS
Grpc frequently asked questions