updatedb --localuser is broken. Script expects su arguments - su -c "command". Either fix script or install better (maybe standard) su command, which understand -c (and even better also -l). Reproducible: Always Steps to Reproduce: 1. 2. 3.
If all else fails, RTFM ? The su we use have '-' that behave the same as '-l'. Also, could you please try to formulate your exact problem better, as well as with maybe some examples and what would have been the expected result ? Anyhow, what is seems like you want, is: # su - -c updatedb --localuser
Sorry, it was my fault (man page contains -c inside text, not as subtitle). The problem seems to be little different: su nobody -c command does nothing (at least on my machine), because /etc/passwd contains: nobody:x:65534:65534:nobody:/:/bin/false Other su implementations does not use default shell value, or only for login shells.
Ok, that is better =) Will have a look at our su .. should not be difficult to patch.
Az is the man.
Ok, last problem is dup of 15014. *** This bug has been marked as a duplicate of 15014 ***