I have a user
chrooted to a directory, and everything is working smoothly. I want a group this user is in to be able to restart a single process that's being managed by
supervisor, however, and I can't figure out how.
I've added this line to
%mygroupname ALL = (root) NOPASSWD:/usr/bin/supervisorctl restart myprocessname
/usr/bin/sudo to the same path in the
chroot environment. I also copied all of its dependencies to the relevant places (found using
I've gathered that
sudo uses a ton of additional files on the system, and I've copied them to the
chroot environment. I'm stuck now, however, and can't get past this error. What am I missing?
sudo log (line breaks for readability):
Nov 10 20:29:04 sudo pam_setcred: Failure setting user credentials @ sudo_pam_begin_session() /build/sudo-1bDJzQ/sudo-1.8.16/plugins/sudoers/auth/pam.c:274 Nov 10 20:29:04 sudo pam_open_session: Module is unknown @ sudo_pam_begin_session() /build/sudo-1bDJzQ/sudo-1.8.16/plugins/sudoers/auth/pam.c:283
Is this a completely stupid idea in the first place?