From owner-freebsd-questions@freebsd.org Thu Jan 5 15:19:24 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8A16C9F64A for ; Thu, 5 Jan 2017 15:19:24 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id C5E2B155F for ; Thu, 5 Jan 2017 15:19:24 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C27C7C9F649; Thu, 5 Jan 2017 15:19:24 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C2266C9F648 for ; Thu, 5 Jan 2017 15:19:24 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7B562155E for ; Thu, 5 Jan 2017 15:19:24 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id n21so435705633qka.3 for ; Thu, 05 Jan 2017 07:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=L1u/exKVutcbX/RkKFZHJuIhfeaH68BISJRDplXW9qg=; b=q8WH8JqPDUc9e2jmj872jh/Hpw2oP50ULTzz9y2Y0D5Xx6xS+L7jvi0O5vtGOJ4XOU frNkTSUkRctn0mIrT6+ZxMyJZ3AgfJr15FkRTlrGTRgvivk/Pe8ng4k4Uym92DabJFJc e4gJjXNvZdex6WDbFfnrza/z3U8bUMDhsvu1MU/hZHhhJO+woC1qmwnm2WwsG2qz6LBc 5L/aq+ehdUMaSdBN9RAw+lriUWTTNDIa4oiDEcKHvEODVNl/uJTUxP6U6wioXFNATffT 8jlAscW3XFA4GvDpV0TDcDJREgXZ5F0al3OowON4fq6zVn3T/HJGEG4YyYmJ2eyIj7v0 nA9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=L1u/exKVutcbX/RkKFZHJuIhfeaH68BISJRDplXW9qg=; b=hxCS067uu9uFnJRoatQmqDCDkI4ZMdpv9vPP+y6E48iBHA9FDPgSGqJw3ikCI/A41d yTzwrVbBHaNrAgGSAPGE9Bu6UejKfbGZ+9k8uitdNHGkndki2hlSJPnuBt+zdeKuHF5c ie3pnuI2F5RapGs7ic8vrL4J0lDXEKcxCtuM41CBJ7oq4AGzu3fMiA2wsXyCOgkl/7vp R1o4XBNf5jB1Q7f2QB+0kD7hbyZwvCDwLsDypKB/sN4qY0O9xozOdR3CgSJ/fbAnJCmS 9U5OrkQGeV95fTX8G03/AsfWhZjTN3eC1a+lnPxbaOTD3AaGgFfm6sv6oGGWFE7D5O06 XXfg== X-Gm-Message-State: AIkVDXKbs8LYNgjVAtnfoym0zwgtVsDB3yJKTSpntvOq0TGOnSNFZxfacLpi5Bf4J3Dxzw55TC3jO1q0dQZdvA== X-Received: by 10.55.66.73 with SMTP id p70mr80621203qka.63.1483629563520; Thu, 05 Jan 2017 07:19:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.55.215.135 with HTTP; Thu, 5 Jan 2017 07:18:42 -0800 (PST) In-Reply-To: <20170105152402.a34d2b5c.freebsd@edvax.de> References: <76d51c92-ea70-c928-297b-4f1379fa4908@passap.ru> <20170105152402.a34d2b5c.freebsd@edvax.de> From: Odhiambo Washington Date: Thu, 5 Jan 2017 18:18:42 +0300 Message-ID: Subject: Re: sudo refuses after upgrading from 10.3 -> 11.0 To: Polytropon Cc: Boris Samorodov , questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2017 15:19:25 -0000 On 5 January 2017 at 17:24, Polytropon wrote: > On Thu, 5 Jan 2017 16:18:34 +0300, Odhiambo Washington wrote: > > On 5 January 2017 at 16:01, Boris Samorodov wrote: > > > > > 05.01.2017 15:17, Odhiambo Washington =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > > > 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 > Hi Polytropon, Well noted. It really helps to have a 'third eye', like this list. For two days I have been wondering what was biting me, but I did not stop to think about the odd path. Blame it on age :-) --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."