| cp: cannot create regular file `/usr/sbin/ddclient': Permission denied |
Most users cannot write outside their own home directory by default (except in places like /var/tmp, /tmp and other temporary directories). This means that you need to be root in order to copy that file to /usr/sbin. Also note that if you copy that file to /usr/sbin only root will be able to use it without entering the full path of the command because */sbin directories are not usually in the path of normal users.
--------------
以上摘自网络: 红色部分:大多数用户不能将文件写到除了用户目录以外的地方。
own home directory 每个linux 系统下都用自己的一个 用户目录。
/home/user_name
在 centos 中如果想要把 home 目录下的文件复制到 其他目录
会提示 cannot create regular filexxxxPermission denied
解决办法: su 回车 【以root身份操作】
本文详细解释了在Linux系统中遇到'无法创建常规文件'错误的原因及解决方案,着重强调了权限问题和使用'su'命令切换为root身份进行操作的重要性。
1010

被折叠的 条评论
为什么被折叠?



