From nobody Mon Dec 13 02:46:50 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 946F818EB32C for ; Mon, 13 Dec 2021 02:47:07 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-oo1-f49.google.com (mail-oo1-f49.google.com [209.85.161.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JC5Wb3hmZz4chw for ; Mon, 13 Dec 2021 02:47:07 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-oo1-f49.google.com with SMTP id v19-20020a4a2453000000b002bb88bfb594so3872439oov.4 for ; Sun, 12 Dec 2021 18:47:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4g7dc1clm1X4GlvPBfipiq9g+pYp7dfWhOuA97Tyz/E=; b=QJnUfRM71hGa7QMXdPexeXqZ32z1sxDwkLV94kEqfMPG5NkMByz9U1h4tF1qH5H56v lKBy5fO+BNo+7uV3mubYGtc9GoFGBuD+8NzZHYvX/ppwKKm0zO1Jcx0+5b2GNhaMvMH/ 1I7xOvZh2Me/gc+UIaJUG0olozQMqM5byP92bhnZVYzZdzKZRSr5SApCLER8ZzYFvQXP gtCR0Z7s5HFcF1MUUVxXxTaWrfO9X77hcpS/v+9HgwaEygDP6qEoFcPy/Tw6+Z5amVWs ueui2ndG/DOXvpOrcTjL9lL+49719j+CgDtyN9vnv1F8kpkgR/MRVWKD2H8yx77HncpR 6Mzg== X-Gm-Message-State: AOAM53294OxYb65gzy/r8D+ORtrpv7qF00suosxLRjZ8RZr0e81riCk5 +Ic+FcuFGwpIGNwMuYcB63E4S40cHMDC1MV4SFk= X-Google-Smtp-Source: ABdhPJzzBVZowExEPAroG3tW2l271JLOlb/y/Bbckt558UdD/UzleWhC4iwqEyjwN61Kfq9ooBN7gusfUt4jhFSjGuo= X-Received: by 2002:a4a:e1a9:: with SMTP id 9mr17866776ooy.41.1639363621628; Sun, 12 Dec 2021 18:47:01 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <47ca4ab6-52cf-8dbe-a1f0-7db13a8f605d@quip.cz> <5f2d681b-e74b-a7bb-eca0-3f2c40533c69@tomatoservers.com> In-Reply-To: <5f2d681b-e74b-a7bb-eca0-3f2c40533c69@tomatoservers.com> From: Alan Somers Date: Sun, 12 Dec 2021 19:46:50 -0700 Message-ID: Subject: Re: root passwd lost To: Frank Hwa Cc: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4JC5Wb3hmZz4chw X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: N On Sun, Dec 12, 2021 at 7:33 PM Frank Hwa wrote: > > Can you help me with the case I lost my root password for the dedicated > server which has freebsd installed? > > Thanks in advance. Easy, you just need console access. First reboot it. At the loader prompt, select "Boot single user". Then after the kernel loads you'll find yourself automatically at a root prompt, without needing to login. Change your password using passwd, then exit the shell to continue normal boot. You may need to remount your / filesystem rw in order to change the password. That can be done with "mount -u -w /" -Alan