Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 00:59:49 -0700 (PDT)
From:      Kevin Stevens <kevin_stevens@pursued-with.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/40325: UID changes not reflected in viewed file/directory ownership
Message-ID:  <200207080759.g687xnlx058609@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <username>.  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207080759.g687xnlx058609>