From owner-freebsd-questions@freebsd.org Thu Jan 5 14:24:15 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 311D4CA013C for ; Thu, 5 Jan 2017 14:24:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 170121589 for ; Thu, 5 Jan 2017 14:24:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: by mailman.ysv.freebsd.org (Postfix) id 13593CA013B; Thu, 5 Jan 2017 14:24:15 +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 11388CA013A for ; Thu, 5 Jan 2017 14:24:15 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 729CE1588 for ; Thu, 5 Jan 2017 14:24:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Thu, 05 Jan 2017 15:26:45 +0100 Received: from r56.edvax.de (port-92-195-83-137.dynamic.qsc.de [92.195.83.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id B9D773CC3F; Thu, 5 Jan 2017 15:24:03 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v05EO24F002241; Thu, 5 Jan 2017 15:24:02 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 5 Jan 2017 15:24:02 +0100 From: Polytropon To: Odhiambo Washington Cc: Boris Samorodov , questions Subject: Re: sudo refuses after upgrading from 10.3 -> 11.0 Message-Id: <20170105152402.a34d2b5c.freebsd@edvax.de> In-Reply-To: References: <76d51c92-ea70-c928-297b-4f1379fa4908@passap.ru> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with D9E2B6A356F X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2155 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 14:24:15 -0000 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 пишет: > > > 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, ...