dmo*_*ati 45
我su - targetuser -s /bin/bash
从 root shell 使用。
对于直接命令执行使用-c
:
su - targetuser -s /bin/bash -c "/bin/echo hello world"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
27662 次 |
最近记录: |