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, <[email protected]> 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 > [email protected] > http://lists.science.uu.nl/mailman/listinfo/nix-dev >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
