www.3112.net > 如何切换linux用户 sh%4.2

如何切换linux用户 sh%4.2

执行echo'$usernameALL=(ALL)NOPASSWD:ALL'>>/etc/sudoers然后在$username账号下编辑suroot.sh:#!/bin/bashsudosu-执行shsuroot.sh就切过去了.

网站地图

All rights reserved Powered by www.3112.net

copyright ©right 2010-2021。
www.3112.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com