[Nix-dev] slock (was: SVN commit: nix - r29326 - in nixpkgs/trunk/pkgs: misc/screensavers/slock top-level)

Evgeny Egorochkin phreedom.stdin at gmail.com
Tue Nov 29 05:21:05 CET 2011


On Пятница 25 ноября 2011 18:16:51 Peter Simons wrote:
> Hi Alexander,
> 
>  > misc/screensavers/slock: New nixpkg.
> 
> I tried to run slock (because it's really quite small!), but I get the
> following error message:
> 
>  $ slock
>  slock: cannot retrieve password entry (make sure to suid slock)
> 
> Do you have an idea how to remedy that issue (preferably in a way that
> doesn't require slock to run as root)?

This is how I made kde screen locking work:
    security.setuidOwners = singleton
      { program = "kcheckpass";
        source = "${pkgs.kde4.kdebase_workspace}/lib/kde4/libexec/kcheckpass";
        owner = "root";
        group = "root";
        setuid = true;
      };

I assume this is a similar case.

-- 
Evgeny


More information about the nix-dev mailing list