X client as non-root system user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to create a PAM configuration for a X client program.  The
program needs to run as a non-root, system (i.e. no password) user.
Here is the /etc/pam.d file:

#%PAM-1.0
auth       sufficient	pam_rootok.so
auth       sufficient	pam_console.so
auth       required	pam_stack.so service=system-auth
session    required	pam_permit.so
session    optional	pam_xauth.so
account    required	pam_permit.so

And here is the file in /etc/security/console.apps:

USER=root
PROGRAM=/usr/sbin/bulldog
SESSION=true

This works to the extent of running /usr/sbin/bulldog (a script) as
root.  The problem comes when I try to run the actual X client as a non-
root user; I lose the ability to connect to the X server.

Is there a way to configure PAM to run a program as a user other than
root, keeping in mind that remote users will still have to authenticate
with the root password?

Thanks!
--
========================================================================
Ian Pilcher                                           pilchman@xxxxxxxxx
========================================================================



_______________________________________________

Pam-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux