Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
anai1943
V2EX  ›  Linux

centos 6 切换用户 su git 后变成 www-data 用户

  •  
  •   anai1943 · Apr 23, 2019 · 4139 views
    This topic created in 2768 days ago, the information mentioned may be changed or developed.

    /etc/passwd 里面的配置

    root 身份下,执行 su git

    正常应该切换成 [git@xxx root]$ 吧?请问是什么原因造成切换用户错误呢?谢谢!

    2 replies  •  2019-04-23 19:39:28 +08:00
    ysc3839
    ysc3839
    Apr 23, 2019 via Android❤️1
    1
    用户 ID 重复了。
    Dragonish3600
    Dragonish3600
    Apr 23, 2019 via iPhone❤️1
    2
    Uid 重复
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   994 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:12 · PVG 03:12 · LAX 11:12 · JFK 14:12
    ♥ Do have faith in what you're doing.