Ubuntu复制文件时提示Permission denied的解决方法
时间:2023-09-02 09:38:19
近日,有用户表示Ubuntu系统把一个文件复制到另一个文件时提示“Permission denied”,这个错误提示的意思是认可被拒绝,意味着复制文件的权限发现了问题,这是怎么回事呢?如何解决这个问题?下面,小编就给大家介绍Ubuntu复制文件时提示Permission denied的解决方法。
Ubuntu系统
一、表面上看是因为权限不足,因此可以通过对usr文件夹进行授权的方式解决:
zhengxiangwen@10:~$sudo chmod -R 777 usr
其中
-R 是指级联应用到目录里的所有子目录和文件
777 是所有用户都拥有最高权限
二、但上面的解决方法只是治标不治本,其实我们需要以管理员的身份进入系统,才能畅通无阻
那么问题来了,怎么样才能以管理员的身份进入系统呢,往下看:
Ubuntu安装好后,root初始密码(默认密码)不知道,需要设置。
1、先用安装Ubuntu的时候创建的用户登录到系统。
2、然后输入命令:sudo passwd 摁回车。
3、接下来会提示您:输入新密码,重复输入密码,最后提示您passwd:password updated sucessfully。
此时已完成root密码的设置。
4、接着就可以输入命令:su root。
即以root的身份登录到系统里面去了,此时你再拷贝文件,就可以了。
标签:Ubuntu,Permission,denied,
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win XP远程控制时如何保证安全
2023-03-21 22:42:07
excel怎样设置保护单元格
2022-08-13 13:16:43
PowerPoint教学课件设计原则及注意事项
2022-11-14 01:57:44
Mac怎么修改图片大小?MAC更改图片尺寸方法介绍
2023-12-07 18:32:42
![](https://img.aspxhome.com/file/2023/3/a215583_0s.png)
Win10笔记本外接显示器怎么设置不熄屏?
2023-05-15 19:26:44
![](https://img.aspxhome.com/file/2023/25/a218401_0s.jpg)
中华万年历APP设置闹钟及日程的具体操作方法
2022-12-19 04:16:23
![](https://img.aspxhome.com/file/2023/8/a338679_0s.jpg)
Win10系统下onenote和onenote2016冲突的解决办法
2023-07-14 13:30:40
![](https://img.aspxhome.com/file/2023/3/a297058_0s.jpg)
tmp文件是什么?tmp文件要怎么打开?
2022-06-07 01:28:05
![](https://img.aspxhome.com/file/2023/30/a265964_0s.png)
在WPS演示中快速实现Flash插入
2022-07-26 05:03:21
Excel使用IMDIV函数计算复数的商
2022-06-06 21:33:50
Win10怎么运行vc6.0 Win10安装vc++6.0教程
2023-09-08 12:04:12
![](https://img.aspxhome.com/file/2023/30/a270104_0s.jpg)
PowerPoint如何更改相册的主题
2023-09-24 14:32:53
Win8摄像头怎么打开快捷方式在哪 2种打开Win8摄像头的方法
2023-06-12 06:57:55
![](https://img.aspxhome.com/file/2023/29/a256680_0s.jpg)
wps文字如何查找替换内容
2023-07-19 16:31:34
win10电脑通过小键盘移动鼠标的方法?
2023-01-09 01:14:52
![](https://img.aspxhome.com/file/2023/3/a293147_0s.png)
在excel表格中怎么绘制斜线并上下打字?
2023-12-03 11:29:44
![](https://img.aspxhome.com/file/2023/8/41518_0s.jpg)
Win10系统玩游戏蓝屏提示代码0x0000007E的两种解决方法
2023-09-29 20:45:53
![](https://img.aspxhome.com/file/2023/28/a245785_0s.jpg)
win10预览版10041 iso镜像下载地址 win10预览版iso镜像网盘下载
2022-03-07 20:14:29
![](https://img.aspxhome.com/file/2023/29/a251328_0s.png)
安装Win10后电脑变慢的解决方法
2023-05-13 12:05:36
![](https://img.aspxhome.com/file/2023/2/a284666_0s.jpg)
方便快捷 Office 2016墨迹公式功能使用方法
2023-08-06 16:25:25
![](https://img.aspxhome.com/file/2023/6/15346_0s.jpg)