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

ansible su 切换用户问题?

  •  
  •   wangmingbuhaoqi · Sep 20, 2017 · 5834 views
    This topic created in 3150 days ago, the information mentioned may be changed or developed.

    -S, --su run operations with su (deprecated, use become)

    -R SU_USER, --su-user=SU_USER run operations with su as this user (default=root) (deprecated, use become)

    但是我执行的时候,看日志,应该是登陆上去了,再切换用户的时候貌似好想不行,也看不懂是啥意思?

    有大神帮助看下没?

    1 replies    2017-09-20 18:57:34 +08:00
    uyinn
        1
    uyinn  
       Sep 20, 2017
    输入 root 的密码
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3266 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 12:19 · PVG 20:19 · LAX 05:19 · JFK 08:19
    ♥ Do have faith in what you're doing.