如何在deepin下以root权限运行sh文件?
Tofloor
poster avatar
杀毒软件吧
deepin
2019-12-28 02:24
Author
如题,试了好多指令,都没有用。

Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-12-28 02:44
#1
带路径就好了
sudo ./xxx.sh
Reply View the author
avatar
杀毒软件吧
deepin
2019-12-28 03:21
#2
https://bbs.deepin.org/post/187407
带路径就好了
sudo ./xxx.sh

毫无反应
Reply View the author
avatar
走钢丝
deepin
2019-12-28 03:43
#3

如果没什么错误提示的话,说明脚本有问题
Reply View the author
avatar
观摩
deepin
2019-12-28 04:23
#4
看你的截图,最后两次执行,看起来都成功了,至于为什么没有任何输出,那就要检查脚本怎么写的了
Reply View the author
avatar
i8520
deepin
2019-12-28 04:59
#5
你的安装脚本有SU这样到用户命令 的话 用SUDO 是无法执行的
Reply View the author
avatar
杀毒软件吧
deepin
2019-12-28 05:36
#6
本帖最后由 dg1vg4 于 2019-12-27 21:39 编辑

最后破案了,语句后加一句text就解决了……


Reply View the author