From owner-freebsd-bugs Mon Jul 8 1: 0:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C769837B400 for ; Mon, 8 Jul 2002 01:00:11 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 269A543E52 for ; Mon, 8 Jul 2002 01:00:11 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6880BJU041215 for ; Mon, 8 Jul 2002 01:00:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6880AZg041214; Mon, 8 Jul 2002 01:00:10 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A23C737B400 for ; Mon, 8 Jul 2002 00:59:49 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65B7A43E31 for ; Mon, 8 Jul 2002 00:59:49 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g687xnOT058610 for ; Mon, 8 Jul 2002 00:59:49 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g687xnlx058609; Mon, 8 Jul 2002 00:59:49 -0700 (PDT) Message-Id: <200207080759.g687xnlx058609@www.freebsd.org> Date: Mon, 8 Jul 2002 00:59:49 -0700 (PDT) From: Kevin Stevens To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/40325: UID changes not reflected in viewed file/directory ownership Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40325 >Category: misc >Synopsis: UID changes not reflected in viewed file/directory ownership >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 08 01:00:10 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Kevin Stevens >Release: 4.6-RELEASE >Organization: Sporadic >Environment: FreeBSD babelfish.pursued-with.net. 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Mon Jul 1 23:26:12 PDT 2002 root@babelfish.pursued-with.net.:/usr/src/sys/compile/kernel.2002070101 i386 >Description: When a user account is modified to change the UID, files and directories created by the prior UID still show as owned by that username. However, the user cannot access them since they are (presumably) actually owned by the prior UID. Other OS's I've used deal with this case by displaying the files as owned by the prior UID number, so they can be readily identified and updated. >How-To-Repeat: Create a user. Create files as that user (permissions 600). ls -l the files and verify that they are owned by that username. Change the user's UID (as root, using pw). ls -l the files and verify that they are still shown as owned by the username. Attempt to access the files and verify that the new UID cannot access them. >Fix: The file ownerships can be updated normally using chown. Of course, it's confusing, since both old UID and new UID files for a given user show as being owned by . I don't know of a workaround. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message