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

          主站蜘蛛池模板: 邛崃市| 师宗县| 舟曲县| 利辛县| 江阴市| 航空| 雷波县| 西林县| 榆社县| 烟台市| 库车县| 铜陵市| 漳浦县| 祁东县| 安阳市| 八宿县| 白沙| 阿拉尔市| 平塘县| 龙陵县| 新郑市| 中方县| 朝阳县| 维西| 中牟县| 马公市| 涟源市| 尉犁县| 郴州市| 旬阳县| 名山县| 竹山县| 大方县| 长宁区| 海南省| 浦县| 丹棱县| 循化| 高青县| 西充县| 浪卡子县|