Github messages for voidlinux
 help / color / mirror / Atom feed
From: rivanfebrian123 <rivanfebrian123@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: "sudo logname" should return my username instead of "root"
Date: Mon, 26 Jul 2021 01:59:24 +0200	[thread overview]
Message-ID: <20210725235924.ruUPv1EQ45aPIesqmBP_1jHYiKa-B9uF5AXgdgfCYfc@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: 842 bytes --]

New comment by rivanfebrian123 on void-packages repository

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

Comment:
Thank you guys for replying!

@loreb Is `utmps` a `logname` alternative? How can I use that. I couldn't find the package
```
[rivanfebrian123@RVN ~]$ xlocate utmps
runit-2.1.2_11	/usr/bin/utmpset
runit-2.1.2_11	/usr/share/man/man8/utmpset.8
```

@ericonr 
Let's say `musl` doesn't really wanna meet POSIX standard because of their principle, but at least, it should be as close as possible to POSIX. Maybe they can return these fallbacks:

1. `$SUDO_USER`
2. `$LOGNAME`
3. `$USER`

In `sudo`, `$LOGNAME` simply returns "root", not my username, so use `$SUDO_USER` instead

@all
Could you guys try those fallbacks on `doas`? I gotta finish my homework assignment in an hour

  parent reply	other threads:[~2021-07-25 23:59 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
2021-07-25 23:59 ` rivanfebrian123 [this message]
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=20210725235924.ruUPv1EQ45aPIesqmBP_1jHYiKa-B9uF5AXgdgfCYfc@z \
    --to=rivanfebrian123@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).