在这个论坛上还有其他关于su,su -,su root.等。
但是我没有发现关于su-to-root命令的任何东西,我想了解它的使用的基本知识。
我希望这个示例有用:在Kali Linuxv2.0live(桌面PC版本)上,安装程序使用这个.desktop直接链接:
root@kali:~$ more /usr/share/applications/debian-installer-launcher.desktop
[Desktop Entry]
Version=1.0
Name=Install Kali
Comment=Install this system permanently to your hard disk
Exec=su-to-root -X -c /usr/sbin/debian-installer-launcher
Icon=debian-installer-launcher
Type=Application
Categories=Application;System;
StartupNotify=true
Terminal=false如果我想从X终端手动启动安装程序,必须使用
su-to-root -X -c /usr/sbin/debian-installer-launcher或者我可以这么做:
sudo /usr/sbin/debian-installer-launcher?
发布于 2015-10-02 21:32:57
只是su的GUI前端。如果您在终端舒适,那么使用sudo应该是好的。
有关更多信息:http://manpages.ubuntu.com/manpages/intrepid/man1/su-to-root.1.html
https://unix.stackexchange.com/questions/233590
复制相似问题