<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/0.12.99">
</HEAD>
<BODY>On Thu, 2001-09-06 at 21:46, Michael Patrick wrote:<br>
Thanks, that helps a little in my understanding. So if this was the case, if any user copies a file, or creates a directory under this testdir, will it retain the permissions of the testdir, or would it be set by the owner?<pre><FONT COLOR="#1a1973">> Hi Patrick.</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> Unix permissions work like this:</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> 1 - execute (or traverse if a directory)</FONT>
<FONT COLOR="#1a1973">> 2 - write</FONT>
<FONT COLOR="#1a1973">> 4 - read</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> further.. the groupings are </FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> owner group others</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> so 755 = rwxr-xr-x</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> Read/Write/Execute for owner</FONT>
<FONT COLOR="#1a1973">> Read and Execute for owner's groups and Others</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> so for someone random (i.e. everyone) to get into a directory, it would need at least</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> d--------x</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> now... they won't be able to list files.. that needs r-x</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> The utility to change permissions is chmod</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> chmod -R 755 michael.users testdir</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> means that I want to assign rwxr-xr-x to testdir AND everything below it (-R is recurse)</FONT>
<FONT COLOR="#1a1973">> </FONT>
<FONT COLOR="#1a1973">> Michael</FONT>
<FONT COLOR="#1a1973">> _______________________________________________</FONT>
<FONT COLOR="#1a1973">> </FONT><A HREF="http://www.ntlug.org/mailman/listinfo/discuss">http://www.ntlug.org/mailman/listinfo/discuss</A></pre><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<pre>--
Patrick Parks
www.patrickparks.com
patrick@patrickparks.com
972.416.8377 (Home)
972.354.7712 (Fax)
504.723.6460 (PCS)</pre></TD>
</TR>
</TABLE>
</BODY>
</HTML>