Date: Thu, 24 Jul 2008 13:48:31 GMT From: Bruce Cran <bruce@cran.org.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/125932: pkg_add(1) doesn't prompt for root credentials and then fails badly Message-ID: <200807241348.m6ODmVNe090621@www.freebsd.org> Resent-Message-ID: <200807241350.m6ODo6tA042529@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125932 >Category: bin >Synopsis: pkg_add(1) doesn't prompt for root credentials and then fails badly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 24 13:50:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Bruce Cran >Release: 7.0 >Organization: >Environment: FreeBSD bsdbox01 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Thu Feb 28 16:53:28 GMT 2008 bruccran@bsdbox01:/usr/obj/usr/src/sys/MYKERNEL i386 >Description: Running pkg_add as a normal user fails. It should check if it's being run under root credentials and if not either abort or prompt for the root password. The following errors are currently displayed: > pkg_add -r gkrellm Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.0-release/Latest/gkrellm.tbz... Done. man/man8/gkrellmd.8.gz: Can't create 'man/man8/gkrellmd.8.gz': Permission denied include/gkrellm2/gkrellmd.h: Failed to create dir 'include/gkrellm2': No such file or directoryCan't create 'include/gkrellm2/gkrellmd.h': No such file or directory libdata/pkgconfig/gkrellmd.pc: Can't create 'libdata/pkgconfig/gkrellmd.pc': Permission denied sbin/gkrellmd: Can't create 'sbin/gkrellmd': Permission denied tar: Error exit delayed from previous errors. pkg_add: extract_plist: can not invoke 156 byte tar pipeline: /usr/bin/tar cf - man/man8/gkrellmd.8.gz include/gkrellm2/gkrellmd.h libdata/pkgconfig/gkrellmd.pc sbin/gkrellmd|/usr/bin/tar --unlink -xpPf - -C /usr/local >How-To-Repeat: Run pkg_add -r as a non-root user. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807241348.m6ODmVNe090621>