> During install I have:
> adduser: unrecognized option `--gecos'
>
> Seems this is not a portable option (especially on CentOS 5 I'm testing
> now).
Background: useradd is specified by the LSB so we know we can count on that
being there and behaving properly, but on systems where adduser exists we
use that in order to take advantage of --system.
We probably want to use useradd on CentOS5, I wonder why it's using adduser?
On some systems we ran into the fact that adduser was a symlink to useradd
(which is braindead) so I made the code check for that case. Here's the code
if [ -f /usr/sbin/adduser -a ! -L /usr/sbin/adduser ]; then
adduser --gecos "" --ingroup --system \
--shell /bin/bash --home "${REPO%/*}"
else
useradd -c "" -g -m \
-s /bin/bash -d "${REPO%/*}"
fi
On CentOS 5 is adduser a real file?
Thanks,
--
Matt Taggart
[email protected]
_______________________________________________
fossology mailing list
[email protected]
http://fossology.org/mailman/listinfo/fossology