V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Ansible
Ansible Documentation
wangmingbuhaoqi
V2EX  ›  Ansible

ansible su 切换用户问题?

  •  
  •   wangmingbuhaoqi · 2017-09-20 16:59:33 +08:00 · 4543 次点击
    这是一个创建于 2402 天前的主题,其中的信息可能已经有所发展或是发生改变。

    -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 条回复    2017-09-20 18:57:34 +08:00
    uyinn
        1
    uyinn  
       2017-09-20 18:57:34 +08:00
    输入 root 的密码
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1257 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:58 · PVG 01:58 · LAX 10:58 · JFK 13:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.