[K12OSN] home directory permissions
ernie_hudson at snowlineschools.com
Thu Jul 10 14:05:58 UTC 2008
Thanks for the info. I will check out the site you recommended and give it a try.
From: k12osn-bounces at redhat.com [mailto:k12osn-bounces at redhat.com] On Behalf Of "Terrell Prudé Jr."
Sent: Thursday, July 10, 2008 6:59 AM
To: Support list for open source software in schools.
Subject: Re: [K12OSN] home directory permissions
Ernie Hudson wrote:
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.
Do get the basics of shell-scripting down. I'd recommend heading over to http://www.tldp.org 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.
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:
for dir in *
chmod 700 $dir
If you want to recurse down and change everything in everyone's homedir to permissions 700, just add the "-R" switch after "chmod".
Do you GNU<http://www.gnu.org>?
Microsoft Free since 2003<http://www.cmosnetworks.com>--the ultimate antivirus protection!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the K12OSN