changing file ownership



I had one admin account with UID 507. I have created a new one that has a
UID of 505, and I want to eventually delete the old one.

I have installed things in places like /Applications and /Library that are
owned by 507, which will no longer have an owner should the account be
removed.

I could look around for these apps and files and change the ownership
manually. But is there a quick and easy way that I can search the whole
HD for files owned by 507 and have their ownership automatically changed
to 505?

I have read the man page for chown but I'm not unix-savvy enough to
understand it completely. I'm worried that I'll change the ownership of
everything on my drive and hose my system. Any help would be
appreciated. Thanks.

--
K.

Lang may your lum reek.
.



Relevant Pages

  • Re: cant boot XP home into safe mode
    ... I can try that but I do not know the username/password of the admin account ... on that machine - unless I can take ownership of a file on an XP "Home" ... > SecondCopy to sync every 30 minutes to the user's home directory on the ... >> personal laptop and now cannot access a directory he has tons of work ...
    (microsoft.public.windowsxp.security_admin)
  • Re: [kde-linux] restoring from backup in Konqueror (and Firefox on KDE)
    ... OpenOffice settings, desktop preferences and links, wallpaper, Kopete ... In my experience using tar is enough, i.e. the ownership is correctly set to ... the user running the extraction. ... her UID and GIDs weren't. ...
    (KDE)
  • Re: Disk quotas
    ... > based on the ownership - which has to be the user. ... After I increased their quotas they were able to save files again, ... The old files I moved might be owned by the admin account now, ... users have permissions on that share, ...
    (microsoft.public.windows.server.sbs)
  • Re: Disk quotas
    ... >>> domain admin account for most of them, ... >> stuff is based on the ownership - which has to be the user. ... Then you might want to disable disk quota management. ... > users have permissions on that share, ...
    (microsoft.public.windows.server.sbs)
  • Re: Moving A Linux Drive. Please Help!
    ... You might have some problems with ownership, ... /etc/passwd in each distro to see what UID you were assigned. ... you will need to do a recursive chown to match the ...
    (comp.os.linux.misc)