Univention Bugzilla – Bug 29344
univention-mount-homedir verwendet getent passwd $USER - aber $USER nicht immer gefüllt
Last modified: 2018-04-13 13:42:14 CEST
In /etc/pam.d/common-session ist "pamrunasroot.so /usr/sbin/univention-mount-homedir" required. Das Skript wertet unter anderem username=$USER aus um dann später "getent passwd $username" zu machen. In bestimmten Situationen (sudo -s, etc.) ist $USER aber nicht gefüllt. Das führt dann dazu, dass "getent passwd" ausgeführt wird, was in größeren Umgebungen entsprechend lange dauern kann.
We will not ship a UCS 3.1-2 release; the next UCS release will be UCS 3.2. As such, this bug is moved to the new target milestone.
Created attachment 5330 [details] univention-mount-homedir Mostly a complete rewrite: 1. username="${1:-${USER:?neither \$1 nor \$USER}}" 2. Drop handling for deprecated Thin-Client since UCS-3.0 3. Use "mountpoint" to check for already mounted $HOME 4. Handle space in share name. 5. Reduce code duplication by reordering code 6. ...
This issue has been filed against UCS 3. UCS 3 is out of the normal maintenance and many UCS components have vastly changed in UCS 4. If this issue is still valid, please change the version to a newer UCS version otherwise this issue will be automatically closed in the next weeks.
This issue has been filed against UCS 3.1. UCS 3.1 is out of maintenance and many UCS components have vastly changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen this issue. In this case please provide detailed information on how this issue is affecting you.