在一次修改 profile 文件后,source 时提示权限不够
[root@pc140238 ~]# source /etc/profile
-bash: /etc/profile: Permission denied
经过排查后发现是 profile 文件第一行最前面的注释被不小心删掉了
变成了 /etc/profile
,加上注释后 # /etc/profile
就可以 source 了
在一次修改 profile 文件后,source 时提示权限不够
[root@pc140238 ~]# source /etc/profile
-bash: /etc/profile: Permission denied
经过排查后发现是 profile 文件第一行最前面的注释被不小心删掉了
变成了 /etc/profile
,加上注释后 # /etc/profile
就可以 source 了
本文标题:【Linux】root 用户 source profile 提示
本文链接:https://www.haomeiwen.com/subject/gwzuhctx.html
网友评论