[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: FC4: %fedora_useradd undefined from rpm install



Quoting jfontain free fr:


> As packager, what am I supposed to do, especially when the following fails:
>
> # /usr/sbin/fedora-useradd -u 23 -M -d /srv/moomps -c 'service companion to
> moodss'  -s '/sbin/nologin' moomps
> Usage: useradd [options] LOGIN
> Options:
>   -b, --base-dir BASE_DIR       base directory for the new user account
> ...
>
> Tracing the script, the following is executed:
> exec /usr/sbin/useradd 300 23 -M -d /srv/moomps -c 'service companion to
> moodss'
> -s /sbin/nologin moomps

After replacing the lines:
    set -- "$v" "$@"
with:
    set -- "-u $v" "$@"
in /usr/share/fedora-usermgmt/wrapper, it work by removing the -u, as in:

# /usr/sbin/fedora-useradd 23 -M -d /srv/moomps -c 'service companion to moodss'
 -s '/sbin/nologin' moomps

Let me know if I need to create a bug report,

--
Jean-Luc


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]