EchoChan
V2EX  ›  macOS

请问 os x 中.bash_profile 的权限应该是 root 还是用户?

  •  
  •   EchoChan · May 1, 2015 · 2550 views
    This topic created in 4210 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
    suifeng
    suifeng
    May 1, 2015
    1
    你看看是不是用户组不是当前用户
    jokester
    jokester
    May 1, 2015
    2
    whoami?
    suifeng
    suifeng
    May 1, 2015❤️1
    3
    @suifeng 没看仔细,原来已经给了文件ls,你的bash_profile用户组是root,应该改成当前用户
    EchoChan
    EchoChan
    OP
    May 1, 2015
    4
    @suifeng 哦原来这样,可能当初用软件安装 jdk 时写入 path 的是 root 用户吧。
    谢谢。
    EchoChan
    EchoChan
    OP
    May 1, 2015
    5
    @jokester 什么意思?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4440 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 06:08 · PVG 14:08 · LAX 22:08 · JFK 01:08
    ♥ Do have faith in what you're doing.