|
Try getpwuid or QlgGetpwuid APIs > James H H Lampert wrote:
I keep running into brick walls on this!Is there a simple way, WITHOUT having to be running under a privileged account, for an ILE program to get the USER PROFILE NAME (NOT the numeric UID!) of the owner of an IFS object? Or the USER PROFILE NAME associated with a UID?Or even better, the last user to modify a particular IFS object?This is really starting to give me a headache. First, I look into using the chown() API to set the owner to whatever user is modifying a *STMF, only to find it only works if you're prived, or if you're the owner of the object. So then, since every change to the *STMFs in question involves rewriting the whole thing, I try deleting the *STMF before writing it. That solves the problem of SETTING the owner to whoever changed the file, but not of GETTING the *USRPRF.-- JHHL
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.