美文网首页
【Linux】root 用户 source profile 提示

【Linux】root 用户 source profile 提示

作者: 佐蓝Gogoing | 来源:发表于2019-07-06 10:31 被阅读0次

    在一次修改 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