posts - 72, comments - 66, trackbacks - 0, articles - 0
          1.Switch to root
          #su root(and input your password)
          2.edit the sudoers file
          root#sudovi -f /etc/sudoers

          add the below line after the last line in sudoers file:
          liqingfeng ALL = (root) NOPASSWD: /usr/bin/vim

          (replace liqingfeng with your user name and replace /usr/bin/vim with your command).



          save your change.

          3.add sudo in Application Launcher

          add 'sudo' in front of the command via editing the 'command' attribute of Application Launcher.



          So far so good,you can run the application as sudo via clicking the Application Launcher.

          More userful infomation:https://help.ubuntu.com/community/Sudoers

          主站蜘蛛池模板: 都昌县| 遵化市| 古浪县| 皋兰县| 运城市| 金乡县| 万盛区| 彭州市| 东方市| 龙井市| 邳州市| 正定县| 南宫市| 崇阳县| 顺昌县| 龙胜| 宣汉县| 砀山县| 兴义市| 宁夏| 连平县| 池州市| 云南省| 富锦市| 澄江县| 靖州| 固安县| 莱州市| 黑水县| 灵丘县| 北票市| 郸城县| 广宁县| 清水县| 甘谷县| 贡嘎县| 镇雄县| 新丰县| 嘉鱼县| 翁牛特旗| 平凉市|