关于VScode远程编写linux SHELL的报错处理

使用vscode远程编写linux保存shell时,提示报错:

未能保存"shell": 无法写入文件"vscode-remote:.../tmp/shell"(NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/tmp/shell')

大体意思是说:权限被拒绝

尝试将当前普通用户加入管理员用户组,无效。

处理思路:

更换文件属主,创建shell文件夹,后期所有shell文本都放在这文件夹里,就不用挨个更换文件书属主。

处理方式:

chmod -R [当前用户名] 文件夹

再次保存,保存成功!

btw:(使用code runner插件,右键shell文本页面,执行"run code")

相关推荐
gtr202028 分钟前
Ubuntu24.04 最小化发布 需要删除的内容
linux
jiayi_19991 小时前
Linux 容器安装 conda 和 pip
linux·conda·pip
一周困⁸天.2 小时前
Redis 主从复制
linux·redis
ayaya_mana2 小时前
CentOS 7/8/9 一键安装 Python 3.10+ 并配置默认版本
linux·python·centos
The Chosen One9852 小时前
【Linux】Linux权限讲解 :写给文件的一封情书
linux·运维·服务器
IT 小阿姨(数据库)2 小时前
PostgreSQL pg_stat_bgwriter 视图各个字段详解
linux·数据库·sql·postgresql·centos
风语者日志3 小时前
[LitCTF 2023]Vim yyds
linux·编辑器·vim
Thexhy3 小时前
在centos 7上配置FIP服务器的详细教程!!!
linux·运维·centos
Java 码农4 小时前
Linux shell sed 命令基础
linux·运维·服务器
yong15858553434 小时前
1. Linux C++ muduo 库学习——库的编译安装
linux·c++·学习