Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'or try this' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
or try this
Authored by: smurf on Nov 02, '01 03:31:33AM

Still too much work.

sudo find / -xdev -user 501 -print0 | xargs -0 chown 202

(501 was my old uid; 202 is the new one)

The -xdev prevents walking off onto your NFS-mounted volumes.
The -print0 and -0 force zero-byte filename termination instead of newlines, which is important because otherwise xargs will interpret spaces too. :-(



[ Reply to This | # ]
or try this
Authored by: Xzklm on Aug 02, '04 02:37:19PM

well this threat is quite old, but i had to deal with this topic lately
the command line work well, if you add anouther sudo, like:

sudo find / -xdev -user 501 -print0 | sudo xargs -0 chown 202
.........................................................^^^



[ Reply to This | # ]