NetBSD Problem Report #37693

From martin@duskware.de  Fri Jan  4 23:30:27 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 7D36763B880
	for <gnats-bugs@gnats.netbsd.org>; Fri,  4 Jan 2008 23:30:27 +0000 (UTC)
Message-Id: <20080104175349.BE9BB63B880@narn.NetBSD.org>
Date: Fri,  4 Jan 2008 17:53:49 +0000 (UTC)
From: rillig@NetBSD.org
Reply-To: rillig@NetBSD.org
To: netbsd-bugs-owner@NetBSD.org
Subject: When installing packages that require special permissions, errors are not reported
X-Send-Pr-Version: www-1.0

>Number:         37693
>Category:       pkg
>Synopsis:       When installing packages that require special permissions, errors are not reported
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 04 23:35:00 +0000 2008
>Originator:     Roland Illig
>Release:        pkgsrc-current
>Organization:
>Environment:
>Description:
I installed sudo-1.6.9p10nb1 as an unprivileged user:

$ pkg_add sudo
...
sudo-1.6.9p10nb1: setting permissions on /usr/pkg/bin/sudo (o=pbulk, g=users, m=4511)
...

There was no hint that setting the permissions (especially the ownership, since I don't have that user on my system) failed.
>How-To-Repeat:

>Fix:
Print a message like the following:

ERROR: sudo-1.6.9p10nb1: setting permissions on /usr/pkg/bin/sudo failed. Run `/usr/pkg/var/db/pkg/sudo-1.6.9p10nb1/+PERMS' again to fix the permissions.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.