Hi, I was testing this script in a shared server setting where we use freeipa for logins and encountered the error:
x11docker ERROR: Could not find user '...' in /etc/passwd.
Since we use freeipa, our users aren't stored in the /etc/passwd file. The system getent command is capable of working with this, but the custom getent command used isn't. I realize this was implemented to address #477 where getent wasn't implemented for some systems/shells.
I think some way of testing for and using the system getent first would suffice. I haven't tested thoroughly, but I made the following quick change below to get it working for me.
Hi, I was testing this script in a shared server setting where we use freeipa for logins and encountered the error:
x11docker ERROR: Could not find user '...' in /etc/passwd
.Since we use freeipa, our users aren't stored in the
/etc/passwd
file. The systemgetent
command is capable of working with this, but the customgetent
command used isn't. I realize this was implemented to address #477 wheregetent
wasn't implemented for some systems/shells.I think some way of testing for and using the system
getent
first would suffice. I haven't tested thoroughly, but I made the following quick change below to get it working for me.