V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sujin190
V2EX  ›  macOS

为什么 Homebrew 现在不支持 root 用户运行了

  •  
  •   sujin190 · Jun 8, 2017 · 4619 views
    This topic created in 3252 days ago, the information mentioned may be changed or developed.

    Homebrew 现在不支持 root 用户运行了,但是有些软件编译的时候就需要修改 root 权限的一些模板,比如 openssl 就需要修改 etc 之类的目录,但 Homebrew 不能以 root 用户运行,这时候就会挂掉,有什么解决办法不?

    7 replies    2017-06-14 12:43:40 +08:00
    Chingim
        1
    Chingim  
       Jun 8, 2017   ❤️ 1
    没记错的话, homebrew 安装的程序, 配置文件在 /usr/local/etc, 这个目录的权限是用户的, 不是 root
    root 的在 /etc 吧
    U7Q5tLAex2FI0o0g
        2
    U7Q5tLAex2FI0o0g  
       Jun 8, 2017
    已经好久以前的事了吧,据说是基于安全考虑。

    至于你说的这种特殊情况,没遇到过,你可以到官方 github 上问问
    sujin190
        3
    sujin190  
    OP
       Jun 8, 2017
    @Chingim #1 感谢,确实如此,好奇怪啊,感觉
    grasses
        4
    grasses  
       Jun 8, 2017
    一直不支持
    ashfinal
        5
    ashfinal  
       Jun 8, 2017
    害我点进来以为自己穿越了……
    Homebrew 啥时候支持 root 运行过?
    Sunshow
        6
    Sunshow  
       Jun 8, 2017
    需要 root 权限的一定是因为你以前不小心用 root 安装的
    sunnysign
        7
    sunnysign  
       Jun 14, 2017
    Homebrew 的所有操作理论上都不需要 root 权限
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1002 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 18:05 · PVG 02:05 · LAX 11:05 · JFK 14:05
    ♥ Do have faith in what you're doing.