sujin190
V2EX  ›  macOS

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

  •  
  •   sujin190 · Jun 8, 2017 · 5014 views
    This topic created in 3441 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
    Chingim
    Jun 8, 2017❤️1
    1
    没记错的话, homebrew 安装的程序, 配置文件在 /usr/local/etc, 这个目录的权限是用户的, 不是 root
    root 的在 /etc 吧
    U7Q5tLAex2FI0o0g
    U7Q5tLAex2FI0o0g
    Jun 8, 2017
    2
    已经好久以前的事了吧,据说是基于安全考虑。

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