61 lines
3.7 KiB
HTML
61 lines
3.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
|
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
|
<HEAD>
|
|
<TITLE>3.9.3 Dependencies</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value="3.9.3 Dependencies">
|
|
<meta name="keywords" value="gs">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html3364 HREF="node128.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3362 HREF="node124.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3356 HREF="node126.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3366 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3367 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html3365 HREF="node128.html">3.9.4 Changing permissions</A>
|
|
<B>Up:</B> <A NAME=tex2html3363 HREF="node124.html">3.9 File Permissions</A>
|
|
<B> Previous:</B> <A NAME=tex2html3357 HREF="node126.html">3.9.2 Interpreting file permissions</A>
|
|
<BR> <HR> <P>
|
|
<H2><A NAME=SECTION00593000000000000000>3.9.3 Dependencies</A></H2>
|
|
<P>
|
|
<A NAME=3240> </A>
|
|
<A NAME=3241> </A>
|
|
<A NAME=3242> </A>
|
|
It is important to note that the permissions granted to a file also
|
|
depend on the permissions of the directory in which the file is located.
|
|
For example, even if a file is set to <tt>-rwxrwxrwx</tt>, other users cannot
|
|
access the file unless they have read and execute access to the directory
|
|
in which the file is located. For example, if Larry wanted to
|
|
restrict access to all of his files, he could simply set the permissions
|
|
on his home directory <tt>/home/larry</tt> to <tt>-rwx------</tt>. In this
|
|
way, no other user has access to his directory, and all
|
|
files and directories within it. Larry doesn't need to worry about the
|
|
individual permissions on each of his files.
|
|
<P>
|
|
In other words, to access a file at all, you must have execute
|
|
access to all directories along the file's pathname, and read
|
|
(or execute) access to the file itself.
|
|
<P>
|
|
Usually, users on a UNIX system are very open with their files.
|
|
The usual set of permissions given to files is <tt>-rw-r--r--</tt>, which will
|
|
allow other users to read the file, but not change it in any way.
|
|
The usual set of permissions given to directories is <tt>-rwxr-xr-x</tt>, which
|
|
will allow other users to look through your directories, but not
|
|
create or delete files within them.
|
|
<P>
|
|
However, many users wish to keep other users out of their files.
|
|
Setting the permissions of a file to <tt>-rw-------</tt> will not allow
|
|
any other user to access the file. Likewise, setting the permissions of
|
|
a directory to <tt>-rwx------</tt> will keep other users out of the
|
|
directory in question.
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html3364 HREF="node128.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3362 HREF="node124.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3356 HREF="node126.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3366 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3367 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html3365 HREF="node128.html">3.9.4 Changing permissions</A>
|
|
<B>Up:</B> <A NAME=tex2html3363 HREF="node124.html">3.9 File Permissions</A>
|
|
<B> Previous:</B> <A NAME=tex2html3357 HREF="node126.html">3.9.2 Interpreting file permissions</A>
|
|
<BR> <HR> <P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Matt Welsh <BR>
|
|
mdw@sunsite.unc.edu</I>
|
|
</ADDRESS>
|
|
</BODY>
|