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

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

  •  
  •   anai1943 · Apr 23, 2019 · 4040 views
    This topic created in 2668 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
        1
    ysc3839  
       Apr 23, 2019 via Android   ❤️ 1
    用户 ID 重复了。
    Dragonish3600
        2
    Dragonish3600  
       Apr 23, 2019 via iPhone   ❤️ 1
    Uid 重复
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2532 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:06 · PVG 00:06 · LAX 09:06 · JFK 12:06
    ♥ Do have faith in what you're doing.