lkml.org 
[lkml]   [1997]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: again security proposal
On Mon, 29 Dec 1997, Yuri Kuzmenko wrote:

> No... See my message. chown must be run from root. This is "standard"
> operation (changing user uid, etc).

Well, if changing the user id is a "standard" operation (which
it should not be, if you do some planning), the correct way to
change ownership of the user's files is the following:

find / -uid 123 -exec chown user {} \; # Old user id = 123

This should be obvious if you think of the semantics of the
UNIX file system.

--
Johan Myreen
jem@iki.fi


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:1.124 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site