惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

博客园 - longbigfish

部署(https证书) https证书问题(本地) 参数更新 Ubuntu 24安装Neo4j详细教程 protect 紧急 手机 刷脏页的两种模式 python中的多线程陷阱与pytorch分布式执行机制 git之复合指令和submodule rpc编程示例 mpi编程 使用脚本进入一个命令行控制台,并预设执行的命令列表 cifs挂载远程文件出现 No such device or address错误 longtable 跨越多个页面时,如何在跨页时自动断行并加上横线及去掉页眉 matplotlib中文显示-微软雅黑 latex编译过程-关于嵌入所有字体 python做图笔记 linux启动全过程 连接并同步windows下的git仓库 反向ssh
cifs远程挂载
longbigfish · 2021-12-03 · via 博客园 - longbigfish

linux挂载win10的

1. 现在win10控制面板程序,功能中把cifs功能打开。

2. 在win10中把要挂载的文件夹设置共享,比如share。

3.在linux中进行挂载

sudo mount -t cifs -o username=user,uid=1000,gid=1000 //192.168.56.1/share share

其中ip就是win10的ip,username是win10的账户名,uid和gid设置为linux用户对应的以支持读写权限。

很多问题都是因为相应的软件没有安装,但是却不提示缺少软件。

sudo apt install cifs-utils

比如:

mount: /home/m/share: mount(2) system call failed: Connection refused.

使用smbclient 查看原因

smbclient   //192.168.56.100/share -U username 进行测试

---

如果没有写入权限,可在共享属性高级共享里全蝎一栏将写入打钩

--- ubunut作服务器

(1)配置用户

     Linux的账户名设为 zhang,这账户需要先加入到smb服务中才能用来作为共享服务的认证。

 sudo mbpasswd -a  zhang   

  这样设置一个密码可以zhang的linux密码不一样,这个密码用来远程访问共享目录。

激活

sudo  sudo mbpasswd -e zhang

(2)配置共享目录和共享名

/etc/samb/smb.conf

加上

[m]
comment = Samba on Ubuntu
path = /home/m
read only = no

其中 m 就是共享名,path 是共享目录。

(3)重启

sudo systemctl restart nmbd

sudo mount -t cifs //11.11.11.11/m ./mp  -o username=zhangsan

远程挂载

可能需要