大佬教程收集整理的这篇文章主要介绍了linux – 为什么sudo su; su tomcat不切换到tomcat用户?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
sudo su; su tomcat@H_301_12@是两个命令. sHell将运行第一个,当它完成时,它将运行第二个.请注意,sHell不会将第二个命令作为参数传递给第一个命令.
sudo su ; su tomcat [sudo] password for iain: root@host:iain]$exit exit password: <---- this is the prompt from the second su command.@H_301_12@sudo -u tomcat <some command>@H_301_12@whoami iain sudo -s -u tomcat whoami tomcat@H_301_12@
以上是大佬教程为你收集整理的linux – 为什么sudo su; su tomcat不切换到tomcat用户?全部内容,希望文章能够帮你解决linux – 为什么sudo su; su tomcat不切换到tomcat用户?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。