Page MenuHomeDevCentral

Allow to get current process username
ClosedPublic

Authored by dereckson on Feb 6 2022, 19:58.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 11:06
Unknown Object (File)
Wed, Mar 27, 10:41
Unknown Object (File)
Fri, Mar 22, 21:24
Unknown Object (File)
Fri, Mar 22, 18:13
Unknown Object (File)
Fri, Mar 22, 10:06
Unknown Object (File)
Thu, Mar 21, 16:39
Unknown Object (File)
Sun, Mar 17, 08:28
Unknown Object (File)
Sun, Mar 17, 07:09

Details

Summary

Use case

Zed is an application which allows users
to upload content. As such, it needs to
help the site administrator to configure
existence and permissions of target folders.

This method is provided to be used there
to geenrate a help message with the user
who could be chowned the directory to,
to provide a better solution than a chmod 0777.

See T1678.

Implementation notes

The command whoami is available on Windows too,
but shows domain\user information, replacing the
domain by hostname when the account is local to
the machine. We filter the domain part out, to be
coherent with Linux and UNIX output.

Diff Detail

Repository
rKOT Keruald OmniTools
Lint
Lint Not Applicable
Unit
Tests Not Applicable