On Thursday, May 12, 2011 03:07:17 PM Harris, Todd wrote:
Last question on this topic I promise.
The program is one that I have very limited control over, and it's
started by the inittab. It is starting an xterm with "xterm -c su -
username". Other than adding the loginuid to the su pam stack is there
any simple way to get the loginuid set to username?
You should have the source code to xterm. You can change it. Its only 3 lines of code
assuming you already did the username lookup. fopen, fwrite, fclose. Aside from that,
you could add pam_loginuid to su's pam settings. But then you have an admin problem if
they ever use it. So, you might want to forbid admins from using it in the pam
settings also. Procedurally, they could use sudo.
-Steve