Re: chmod/chown -R - maybe an ITP
On Mon, Dec 13, 1999 at 09:33:00AM -0500, Daniel Burrows wrote:
> On Mon, Dec 13, 1999 at 03:19:36PM +0100, Russell Coker was heard to say:
> > Do we have a set of chmod/chown programs that will solve these problems?
> > I would like to have versions of them which take a source UID or GID. So we
> > can say "recurse through this directory and change the ownership or
> > permissions of files owned by this user".
> > This will make it really easy to renumber UIDs, "nuchown oldUID newUID -R /" !
>
> Can't you do this with find and xargs? Or are you looking for something more
> sophisticated?..
find / -uid <olduid> | xargs chown <newuid>
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org - collinbm@djj.state.va.us - bmc@visi.net '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
Reply to: