Re: LOGNAME, USER, and get-uid; NIS hga@xxxxxx 13 Aug 2019 11:26 UTC

> From: Lassi Kortela <>
> Date: Tuesday, August 13, 2019 4:13 AM

> [...]

>> Although I note just now using setuid with scsh 0.7 on Bionic Beaver
>> that both user-uid and user-effective-uid stay the same before and
>> after I do (set-uid 1000), 0 to 1000....  Although there's no trail
>> of crumbs in the source from what I take to be the system calls to
>> either of the Scheme procedures....

> That sounds just weird... If you start off as root, at least the
> first set-uid should succeed in changing the UID.

Sorry if I wasn't clear, I only did one set-uid, and it indeed
changed the effective uid to 1000.  The problem is that the real
uid, as returned by user-uid, modulo that I can't trace it or
get-effective-uid to getuid and geteuid in the source code, also
changed to 1000.

- Harold