Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
V2EX
›
macOS
请问 os x 中.bash_profile 的权限应该是 root 还是用户?
EchoChan
·
May 1, 2015
· 2252 views
This topic created in 4025 days ago, the information mentioned may be changed or developed.
目前我是:
-rw-r--r-- 1 root staff 181 4 19 17:13 .bash_profile
但是使用 vi .bash_profile 却提示:W10: Warning: Changing a readonly file
readonly
root
权限
5 replies
1
suifeng
May 1, 2015
你看看是不是用户组不是当前用户
2
jokester
May 1, 2015
whoami?
3
suifeng
May 1, 2015
1
@
suifeng
没看仔细,原来已经给了文件ls,你的bash_profile用户组是root,应该改成当前用户
4
EchoChan
OP
May 1, 2015
@
suifeng
哦原来这样,可能当初用软件安装 jdk 时写入 path 的是 root 用户吧。
谢谢。
5
EchoChan
OP
May 1, 2015
@
jokester
什么意思?
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
965 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms ·
UTC 20:22
·
PVG 04:22
·
LAX 13:22
·
JFK 16:22
♥ Do have faith in what you're doing.
❯