[Nix-dev] runuser from utillinux not working.

Kevin Cox kevincox at kevincox.ca
Thu Apr 14 04:03:03 CEST 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160413/dd25118e/attachment.bin 


More information about the nix-dev mailing list