Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node125.html
2024-02-19 00:23:35 -05:00

86 lines
4.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.1 Concepts of file permissions</TITLE>
</HEAD>
<BODY>
<meta name="description" value="3.9.1 Concepts of file permissions">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html3340 HREF="node126.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3338 HREF="node124.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3332 HREF="node124.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3342 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3343 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3341 HREF="node126.html">3.9.2 Interpreting file permissions</A>
<B>Up:</B> <A NAME=tex2html3339 HREF="node124.html">3.9 File Permissions</A>
<B> Previous:</B> <A NAME=tex2html3333 HREF="node124.html">3.9 File Permissions</A>
<BR> <HR> <P>
<H2><A NAME=SECTION00591000000000000000>3.9.1 Concepts of file permissions</A></H2>
<P>
<A NAME=3174>&#160;</A>
<A NAME=3175>&#160;</A>
<A NAME=3176>&#160;</A>
Because there are multiple users on a UNIX system, in order to protect
individual user's files from tampering by other users, UNIX provides
a mechanism known as <b>file permissions</b>. This mechanism allows
files and directories to be ``owned'' by a particular user. As an example,
because Larry created the files in his home directory, Larry owns those files,
and has access to them.
<P>
UNIX also allows files to be shared between users and groups of users.
If Larry so desired, he could cut off access to his files, such that no
other user could access them. However, on most systems the default is to
allow other users to read your files, but not modify or delete them in
any way.
<P>
<A NAME=3178>&#160;</A>
As explained above, every file is owned by a particular user.
However, files are also owned by a particular <b>group</b>, which is a
system-defined group of users. Every user is placed into at least
one group when that user is created. However, the system administrator
may also grant the user access to more than one group.
<P>
<A NAME=3180>&#160;</A>
<A NAME=3181>&#160;</A>
Groups are usually defined by the type of users which access the machine.
For example, on a university UNIX system, users may be placed into the
groups <tt>student</tt>, <tt>staff</tt>, <tt>faculty</tt> or <tt>guest</tt>. There
are also a few system-defined groups (such as <tt>bin</tt> and <tt>admin</tt>)
which are used by the system itself to control access to resources---very
rarely do actual users belong to these system groups.
<P>
Permissions fall into three main divisions: read, write, and execute.
These permissions may be granted to three classes of users: the owner
of the file, the group to which the file belongs, and to all users,
regardless of group.
<P>
<A NAME=3188>&#160;</A>
<A NAME=3189>&#160;</A>
<A NAME=3190>&#160;</A>
<A NAME=3191>&#160;</A>
<A NAME=3192>&#160;</A>
<A NAME=3193>&#160;</A>
<A NAME=3194>&#160;</A>
<A NAME=3195>&#160;</A>
<A NAME=3196>&#160;</A>
Read permission allows a user to read the contents
of the file, or in the case of directories, to list the contents of
the directory (using <tt>ls</tt>). Write permission allows the user to
write to and modify the file. For directories, write permission allows
the user to create new files or delete files within that directory. Finally,
execute permission allows the user to run the file as a program or
shell script (if the file happens to be a program or shell script, that is).
For directories, having execute permission allows the user to <tt>cd</tt>
into the directory in question.
<P>
<BR> <HR><A NAME=tex2html3340 HREF="node126.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html3338 HREF="node124.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html3332 HREF="node124.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html3342 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html3343 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html3341 HREF="node126.html">3.9.2 Interpreting file permissions</A>
<B>Up:</B> <A NAME=tex2html3339 HREF="node124.html">3.9 File Permissions</A>
<B> Previous:</B> <A NAME=tex2html3333 HREF="node124.html">3.9 File Permissions</A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>