Posted on 2009-02-23 12:33
Fingki.li 阅读(1311)
评论(0) 编辑 收藏 所属分类:
About linux
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