<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style type="text/css">
<!--
body{margin-left:10px;margin-right:10px;margin-top:10px;margin-bottom:10px;}
-->
</style>
</head>
<body marginleft="10" marginright="10" margintop="10" marginbottom="10">
<font face="Arial" size="+0" color="#000000" style="font-family:Arial;font-size:10pt;color:#000000;"><b>CentOS mailing list <<a href="mailto:centos@centos.org">centos@centos.org</a>> writes:<br />
</b></font><span style="background-color:#d0d0d0;"><font face="Geneva" size="-1" color="#000000" style="font-family:Geneva;font-size:9pt;color:#000000;">Anyway.  In case one wanted to do a little chown'ing above and beyond<br />
the scope of most necessity again, the proper way to deal with the -R <br />
recursion<br />
nightmare is by executing it on .??* and ??*.<br />
That will, of course skip anything that has a 2-character name, but <br />
that's usually<br />
okay, because it will keep you from recursively chown'ing "..".<br />
Just in case nobody comes out and says it..<br />
Peter<br />
-- <br />
Peter Serwe <peter at infostreet dot com><br />
</font></span><font face="Lucida Sans Typewriter" size="+0" color="#000000" style="font-family:Lucida Sans Typewriter;font-size:12pt;color:#000000;"><br />
A much easier concept would be to:<br />
<br />
        chown -R user2:user2 ~user2<br />
<br />
which will implicitly recurse through that directory.  There's normally no reason the user's home directory itself shouldn't be owned by the user.<br />
<br />
<br />
-Adam Thompson<br />
 Divisional IT Department,  St. James-Assiniboia School Division<br />
 150 Moray St., Winnipeg, MB, R3J 3A2<br />
 <a href="mailto:athompson@sjsd.net">athompson@sjsd.net</a> / tel: (204) 837-5886 x222 / fax: (204) 885-3178<br />
<br />
</font>
</body>
</html>