From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4ZsrLm598cz2yTm for ; Wed, 7 May 2025 09:58:40 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R10" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4ZsrLj1YC7z2yHY for ; Wed, 7 May 2025 09:58:37 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4ZsrLh3jPQz15J; Wed, 7 May 2025 09:58:36 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1746611916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RXF2E26B2XZp7IHGYyeG/3QtvnR5Pf3FvDGhHM6TsbE=; b=044WOMLZeNo6iLU8rToqW0SJcySx/lJLwk/khN7FUUOZ2/JnHsf9cTa6P4kQiFIHLIHVPg 3zqi9jzaDv3umGCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1746611916; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RXF2E26B2XZp7IHGYyeG/3QtvnR5Pf3FvDGhHM6TsbE=; b=R7y6z1NdKaNQBDgoBrx76KW4dGFNh7Yh7ERdMVUzB9hXYQ7gvZ+qimXYfyAkt2PfW7/y3J 6ltO1m2XpH7M6ZkZHhuKTdTjfas+cy35C0YZVPcLYunUaTby8t45wg/PV+aWiMkhZAG9JV 1ueFMZTzypwLzRbJKRbsrKvoCt/e7nD9GlPoVLJsnual+ya0Et2oPRoRtIOv3l7spZZpUm 6dq5BZ9rf3wNKzQRjPF6PxnOTYWWxOROKliwAcDu6YTnNiARG/En8+jUQMlhz7EtTTdcpj uEG1CK2/jj2lY+ubA6wF7pZSs17ZqujGGwboUtTMbeeMpO1mjp1mmQK9Pj+W2A== From: Adolf Belka To: development@lists.ipfire.org Cc: Adolf Belka Subject: [PATCH] passwords.c: Update number of rounds for passwords from 7 to 10 Date: Wed, 7 May 2025 11:58:33 +0200 Message-ID: <20250507095833.10985-1-adolf.belka@ipfire.org> Precedence: list List-Id: List-Subscribe: , List-Unsubscribe: , List-Post: List-Help: Sender: Mail-Followup-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit - This improves the security of the root and admin passwords created and makes it the same as used for the proxy local auth password code in proxy.cgi & chpasswd.cgi Signed-off-by: Adolf Belka --- src/setup/passwords.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup/passwords.c b/src/setup/passwords.c index 6242577af..bb6ffe8e6 100644 --- a/src/setup/passwords.c +++ b/src/setup/passwords.c @@ -56,7 +56,7 @@ int handleadminpassword(void) return 0; snprintf(commandstring, STRING_SIZE, - "/usr/bin/htpasswd -c -B -C 7 -b " CONFIG_ROOT "/auth/users admin '%s'", password); + "/usr/bin/htpasswd -c -B -C 10 -b " CONFIG_ROOT "/auth/users admin '%s'", password); sprintf(message, _("Setting %s 'admin' user password..."), NAME); if (runhiddencommandwithstatus(commandstring, _("Setting password"), message, NULL)) { sprintf(message, _("Problem setting %s 'admin' user password."), NAME); -- 2.49.0