【Linux】root 用户 source profile 提示

2019-07-06  本文已影响0人  佐蓝Gogoing

在一次修改 profile 文件后,source 时提示权限不够

[root@pc140238 ~]# source /etc/profile
-bash: /etc/profile: Permission denied

经过排查后发现是 profile 文件第一行最前面的注释被不小心删掉了
变成了 /etc/profile ,加上注释后 # /etc/profile 就可以 source 了

上一篇下一篇

猜你喜欢

热点阅读