Ansible
Ansible Documentation
wangmingbuhaoqi
V2EX  ›  Ansible

ansible su 切换用户问题?

  •  
  •   wangmingbuhaoqi · Sep 20, 2017 · 5903 views
    This topic created in 3170 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   ·   4122 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 05:15 · PVG 13:15 · LAX 22:15 · JFK 01:15
    ♥ Do have faith in what you're doing.