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


只有注册用户登录后才能发表评论。


网站导航: