Date: Thu, 5 Jan 2017 15:24:02 +0100 From: Polytropon <freebsd@edvax.de> To: Odhiambo Washington <odhiambo@gmail.com> Cc: Boris Samorodov <bsam@passap.ru>, questions <questions@freebsd.org> Subject: Re: sudo refuses after upgrading from 10.3 -> 11.0 Message-ID: <20170105152402.a34d2b5c.freebsd@edvax.de> In-Reply-To: <CAAdA2WM4qnpjzwT_Pn67iP=Jv%2BMJen8PjvtFfqSgQLOE0-9oSw@mail.gmail.com> References: <CAAdA2WOwcYHp0TMuP=WYwi-9h9uxPRmYQg5G1JLQspPOYE7ymw@mail.gmail.com> <76d51c92-ea70-c928-297b-4f1379fa4908@passap.ru> <CAAdA2WM4qnpjzwT_Pn67iP=Jv%2BMJen8PjvtFfqSgQLOE0-9oSw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 5 Jan 2017 16:18:34 +0300, Odhiambo Washington wrote: > On 5 January 2017 at 16:01, Boris Samorodov <bsam@passap.ru> wrote: > > > 05.01.2017 15:17, Odhiambo Washington пишет: > > > I have upgraded to 11.0 using source upgrade. > > > > > > I have reinstalled all packages, including sudo, but.... > > > > > > root@mail:/usr/local/ILI/Exim/exim-4.88 # uname -opr > > > *FreeBSD 11.0-STABLE amd64* > > > > > > root@mail:/usr/local/ILI/Exim/exim-4.88 # sudo su > > > */usr/bin/sudo: Undefined symbol "sudo_reallocarray*" > > > > Sudo has never been installed to /usr/bin. > > > > HTH & WBR > > -- > > bsam > > > > Good catch! > > root@mail:/usr/home/admin # ls -al /usr/bin/sudo > -rwsr-xr-x 1 root wheel 112360 May 10 2016 /usr/bin/sudo > root@mail:/usr/home/admin # less /usr/bin/sudo > "/usr/bin/sudo" may be a binary file. See it anyway? > root@mail:/usr/home/admin # ls -la /usr/local/bin/sudo > -rwsr-xr-x 1 root wheel 112416 Dec 24 04:15 /usr/local/bin/sudo > > After rm /usr/bin/sudo, now sudo works!! Some newbie admin was playing with > this system a few weeks ago!!! Always remember: FreeBSD places system programs in /bin, /usr/bin etc., while 3rd party programs to to /usr/local/bin; sudo is not part of FreeBSD, so it's easy to conclude _where_ it has to be located. (Sidenote: Few ports have options to make them install into system directories or replace system programs, for example bash or CUPS, but that is usually not the default.) Supplied by FreeBSD: su Additional programs: sudo, super -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170105152402.a34d2b5c.freebsd>