Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2021 21:59:52 +0000
From:      Chris Rees <crees@bayofrum.net>
To:        freebsd-current@freebsd.org, Graham Perrin <grahamperrin@gmail.com>
Subject:   Re: freebsd-update(8) without an echo of "You must be root to run this."
Message-ID:  <BAA5410A-FAC7-45D1-9295-CB1CD3A47F6A@bayofrum.net>
In-Reply-To: <1d5a4d6b-b857-d5c5-070f-8d13f4ae3deb@gmail.com>

index | next in thread | previous in thread | raw e-mail

Hey,

On 16 February 2021 08:53:29 GMT, Graham Perrin <grahamperrin@gmail.com> wrote:
><https://cgit.freebsd.org/src/tree/usr.sbin/freebsd-update/freebsd-update.sh?id=48ffe56ac5b7adb5b851d32be12b2ec0f13705a4#n555>;
>
>         echo "You must be root to run this."
>
>Below: is this my PEBKAM, or (with a system that is preconfigured to 
>deny login as root) _should_ there be an echo of the requirement to run
>
>as root?
>
>----
>
>mowa219-gjp4-vm-hellosystem-eol-freebsd% su -
>Password:
>su: Sorry
>mowa219-gjp4-vm-hellosystem-eol-freebsd% sudo grep LOCKED 
>/etc/master.passwd
>root:*LOCKED*:0:0::0:0:Charlie &:/root:/bin/csh
>mowa219-gjp4-vm-hellosystem-eol-freebsd% sudo freebsd-update upgrade -r

Sudo means that you are root.  *LOCKED* just disables the root password.

Chris


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAA5410A-FAC7-45D1-9295-CB1CD3A47F6A>