[Nix-dev] runuser from utillinux not working.

zimbatm zimbatm at zimbatm.com
Thu Apr 14 13:56:07 CEST 2016


Hi,

Is the setuid flag set ? Suid programs are  special in nixos so it's
possible runuser didn't get classified properly.

On Thu, 14 Apr 2016 03:03 Kevin Cox, <kevincox at kevincox.ca> wrote:

> Hello,
>
> I was trying to use runuser from utillinux to run a process as another
> user but ran into a problem. Running the command (as root) gives the
> following.
>
> # runuser -ukevincox whoami
> runuser: Failure setting user credentials
> # echo $?
> 1
>
> A similar command using sudo works but I was wondering why runuser
> doesn't. Looking around on the web I found that this error could be
> caused by missing PAM config files[1,2] however I don't really know PAM
> at all and was wondering if someone knew what the problem was in our case.
>
> [1] http://patchwork.openembedded.org/patch/104339/
> [2] https://bugs.mageia.org/show_bug.cgi?id=6391
>
> Thanks, Kevin
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160414/f2b318da/attachment.html 


More information about the nix-dev mailing list