特牛生活网

shell 切换用户_su -s /bin/sh-CSDN博客

网友收藏
文章浏览阅读1.9k次。# For SELinux we need to use ‘runuser‘ not ‘su‘if [ -x "/sbin/runuser" ]; then SU="/sbin/runuser -s /bin/sh"else SU="/bin/su -s /bin/sh"fi如果想要切换用户并且执行一些组件的shell应该使用以下的命令/bi..._su -s /bin/sh
标签:su -s /bin/sh