Github messages for voidlinux
 help / color / mirror / Atom feed
From: loreb <loreb@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: "sudo logname" should return my username instead of "root"
Date: Sun, 25 Jul 2021 22:56:52 +0200	[thread overview]
Message-ID: <20210725205652.q6olEewDvzw3TuYh-9FD3t0ahSrJBHDxmV8pvwucHOE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32185@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

New comment by loreb on void-packages repository

https://github.com/void-linux/void-packages/issues/32185#issuecomment-886256716

Comment:
@ericonr til that `LOGNAME` is actually specified by POSIX, I didn't know that... still doas says it sets `LOGNAME`, period, and sudo says it does unless special precautions are taken.

If I understand correctly:
- musl is technically correct relying on LOGNAME,
- sudo & doas setting LOGNAME is technically incorrect (but probably the right choice) unless they actually login with utmp etc (doas doesn't, sudo mentions utmp/wtmp enough time that I believe they do)

so either musl resorts to strange hacks to handle the situation or until the musl guys do something like https://skarnet.org/software/utmps/ (unlikely) it looks to me like the current behavior is the least-worst option.


  parent reply	other threads:[~2021-07-25 20:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-25  3:44 [ISSUE] " rivanfebrian123
2021-07-25  3:57 ` ericonr
2021-07-25  4:06 ` rivanfebrian123
2021-07-25  5:43 ` ericonr
2021-07-25 19:49 ` loreb
2021-07-25 20:15 ` ericonr
2021-07-25 20:56 ` loreb [this message]
2021-07-25 23:59 ` rivanfebrian123
2021-07-26  1:09 ` ericonr
2021-07-26 12:07 ` fosslinux
2021-07-26 12:08 ` fosslinux
2021-08-02 14:03 ` loreb
2021-08-03  0:26 ` rivanfebrian123
2021-08-03  3:00 ` ericonr
2021-08-03 10:28 ` rivanfebrian123
2021-08-03 10:31 ` rivanfebrian123
2021-08-03 10:33 ` rivanfebrian123
2021-08-03 13:59 ` ericonr
2021-08-03 13:59 ` [ISSUE] [CLOSED] " ericonr
2021-08-03 13:59 ` ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210725205652.q6olEewDvzw3TuYh-9FD3t0ahSrJBHDxmV8pvwucHOE@z \
    --to=loreb@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).