<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ernie Hudson wrote:
<blockquote
 cite="midFB02E64E82E1AE4C915EF9A76D6D8DA9451BE5E355@mail.snowlineschools.com"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal">Does anyone have an easy way to change the
permissions on the home directories so that only the owner has access
to it. We have some very bright students and they have found out that
they can copy work from someone else and have more free time. I am
using the 5EL and have single sign on using likewise open from my
windows server using active directory. I know I can change them one at
a time using “chmod 700 filename”. I am not adept at writing scripts
and hoping someone can help.<o:p></o:p></p>
  <p class="MsoNormal"><o:p> </o:p></p>
  </div>
</blockquote>
Do get the basics of shell-scripting down.  I'd recommend heading over
to <a class="moz-txt-link-freetext" href="http://www.tldp.org">http://www.tldp.org</a> and reading the Advanced BASH Scripting Guide. 
That's how I learned how to do it.  Extremely handy skill and very
necessary, just as important as writing .BAT or .REG files on Windows.<br>
<br>
Now to your specific question.  That's pretty easy to do.  All you
really have to do is change the top level directory permissions under
/home, i. e. no recursion needed.  I'd do it like this, in a basic FOR
loop:<br>
<br>
#!/bin/bash<br>
cd /home<br>
for dir in *<br>
do<br>
  chmod 700 $dir<br>
done<br>
<br>
If you want to recurse down and change everything in everyone's homedir
to permissions 700, just add the "-R" switch after "chmod".<br>
<br>
--TP<br>
<div class="moz-signature">
_______________________________
<br>
Do you <a href="http://www.gnu.org">GNU</a>?
<br>
<a href="http://www.cmosnetworks.com">Microsoft Free since 2003</a>--the
ultimate antivirus protection!
<br>
</div>
<br>
</body>
</html>