• Home
  • About
    • W x Workshop photo

      W x Workshop

      Technology, Maker, Life.

    • Learn More
    • Email
    • LinkedIn
    • Github
    • Steam
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

不输入密码运行kdesu

24 Mar 2015

Reading time ~1 minute

  1. 开启当前用户,sudo执行不需输入密码功能。

编辑 /etc/sudoers

去除注释:

## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL
  1. 创建编辑一下内容文件:

KDE下常用kdesu以root权限执行GUI程序。默认情况下,即使root账户被禁用,kdesu仍会尝试使用su切换root。需要配置kdesu以使用sudo,创建/编辑/usr/share/config/kdesurc加入:

[super-user-command]
super-user-command=sudo

注销后尝试。



LinuxKDEsudo Like Tweet +1