If a user is removed from the Linux password file without being
removed from Samba's user database then "pdbedit -Lv" produces the error message
"pdb_get_group_sid: Failed to find Unix account for hotdesk1"
BUT: the message is sent to standard output, not standard error. It can appear
anywhere in pdbedit's normal output - even in the middle of a line. It
therefore seriously interferes with any script designed to parse pdbedit's
This causes one of our triggers to fail when samba is updated and therefore the older samba version doesn't uninstall.
The problem is particularly obvious with large user databases.