sudo refuses after upgrading from 10.3 -> 11.0

Polytropon freebsd at edvax.de
Thu Jan 5 14:24:15 UTC 2017


On Thu, 5 Jan 2017 16:18:34 +0300, Odhiambo Washington wrote:
> On 5 January 2017 at 16:01, Boris Samorodov <bsam at 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 at mail:/usr/local/ILI/Exim/exim-4.88 # uname -opr
> > > *FreeBSD 11.0-STABLE amd64*
> > >
> > > root at 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 at mail:/usr/home/admin # ls -al /usr/bin/sudo
> -rwsr-xr-x  1 root  wheel  112360 May 10  2016 /usr/bin/sudo
> root at mail:/usr/home/admin # less /usr/bin/sudo
> "/usr/bin/sudo" may be a binary file.  See it anyway?
> root at 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, ...


More information about the freebsd-questions mailing list