[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: changing user id for all files in a file system



On Wed, Jun 14, 2006 at 10:02:43PM +0200, Johannes Zellner wrote:
> Hello,
> 
> is there a simple and fast way to change the user id for all files in
> the file system, say from 1234 to 5000?

chown --recursive onion: foo

will change the owners of all the files in the foo file-tree to onion, 
and change their gropu IDs accordingly.  Leave off the colons if you 
want them to stay in the old group.

Read
	man chown
first, to make sure you know what it's doing.

-- hendrik



Reply to: