libnss-sss postinst script puts "automounter: sss" in nsswitch.conf; should be "automount: sss"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs |
Invalid
|
Undecided
|
Unassigned | ||
sssd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In package libnss-sss_2.2.3-2 (Ubuntu 20.04 focal beta), the postinst script does:
insert_nss_entry() {
log "Checking NSS setup..."
# abort if /etc/nsswitch.conf does not exist
if ! [ -e /etc/nsswitch.conf ]; then
log "Could not find /etc/nsswitch.
return
fi
# append 'sss' to the end of the line if it's not found already
sed -i --regexp-extended '
/
/\bsss\b/! s/$/ sss/
}
' /etc/nsswitch.conf
# and add a new entry for automount if it's not there
if ! grep -q automounter /etc/nsswitch.conf; then
log "Adding an entry for automounter."
echo "automounter: sss" >> /etc/nsswitch.conf
fi
}
However, according to https:/
that's a nice typo, will fix in debian