Skip to main content

Timeline for How to get HOME, given USER?

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Oct 5, 2023 at 23:36 comment added Mike Hill I'm also getting "access denied" for the Red Hat page. However, I verified -- @kikenchitai is right (at least in RHEL 9). Manpages are obscure but mention only non-numeric keys are passed to getpwnam(3). As an alternative solution, use getent passwd | grep '^username:' (from stackoverflow.com/q/35909572/1941654). Either way, we're just getting the passwd database and parsing for the home path.
S Jul 29, 2022 at 1:44 history suggested Greenonline CC BY-SA 4.0
Code formatting
Jul 28, 2022 at 9:38 comment added Stephen Kitt @kikenchitai your link has nothing to do with chmod and getent, could you check whether it’s actually the link you wanted to use?
Jul 28, 2022 at 6:11 comment added Greenonline Link gives "access denied".
Jul 28, 2022 at 6:11 review Suggested edits
S Jul 29, 2022 at 1:44
Jul 28, 2022 at 2:26 review Late answers
Jul 28, 2022 at 6:11
Jul 28, 2022 at 2:13 history edited kikenchitai CC BY-SA 4.0
forgot to answer the question.. doh!
S Jul 28, 2022 at 2:02 review First answers
Aug 11, 2022 at 2:05
S Jul 28, 2022 at 2:02 history answered kikenchitai CC BY-SA 4.0