[Xorp-hackers] [PATCH] xorp_install script

Ben Greear greearb at candelatech.com
Fri Sep 23 09:34:12 PDT 2011


On 09/23/2011 08:15 AM, "Igor Maravić" wrote:
> When XORP user is initially created with xorp_install.sh script, I think that it is better to create user as system user without home dir.
> BR
> Igor Maravić
>
> Signed-off-by: Igor Maravić<igorm at etf.rs>
> ---
> --- xorp/xorp_install.bash.orig	2011-09-23 17:08:41.405949155 +0200
> +++ xorp/xorp_install.bash	2011-09-23 17:05:34.021949091 +0200
> @@ -19,7 +19,7 @@ fi
>
>   # Add xorp user and group
>   echo "Creating xorp user and adding xorp to xorp and root groups..."
> -adduser xorp
> +adduser --system --no-create-home xorp
>   usermod -a -G xorp xorp
>   usermod -a -G xorp root
>   usermod -a -G xorp lanforge

On Fedora Core 5, this does not work.  The --no-create-home option
is not supported.  The -M option appears to be, and it means do
not create a home dir.  FC5 does not support the --system option
either.  I've no idea what Debian and similar systems
support.

If you'd like to make the script smart enough to detect which options
are available (maybe try each until something succeeds?), then
I'll apply the patch.

Otherwise, I'll leave it as it is.

Thanks,
Ben

>
>
> _______________________________________________
> Xorp-hackers mailing list
> Xorp-hackers at icir.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list