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

推荐订阅源

I
Intezer
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
T
Tenable Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
P
Privacy International News Feed
IT之家
IT之家
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
博客园_首页
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
NISL@THU
NISL@THU
I
InfoQ
D
DataBreaches.Net
有赞技术团队
有赞技术团队
K
Kaspersky official blog
Security Latest
Security Latest
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AI
AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic

博客园 - 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

远程挂载

可能需要