summaryrefslogtreecommitdiff
path: root/sag-0.6.1-www/Invisible/sag-0.6/node92.html
diff options
context:
space:
mode:
Diffstat (limited to 'sag-0.6.1-www/Invisible/sag-0.6/node92.html')
-rw-r--r--sag-0.6.1-www/Invisible/sag-0.6/node92.html76
1 files changed, 76 insertions, 0 deletions
diff --git a/sag-0.6.1-www/Invisible/sag-0.6/node92.html b/sag-0.6.1-www/Invisible/sag-0.6/node92.html
new file mode 100644
index 0000000..1d24df6
--- /dev/null
+++ b/sag-0.6.1-www/Invisible/sag-0.6/node92.html
@@ -0,0 +1,76 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
+<HTML>
+<HEAD>
+<TITLE>Creating a user by hand</TITLE>
+<META NAME="description" CONTENT="Creating a user by hand">
+<META NAME="keywords" CONTENT="sag">
+<META NAME="resource-type" CONTENT="document">
+<META NAME="distribution" CONTENT="global">
+<LINK REL=STYLESHEET HREF="sag.css">
+</HEAD>
+<BODY LANG="EN" >
+ <A NAME="tex2html1474" HREF="node93.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html1472" HREF="node88.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html1468" HREF="node91.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html1476" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html1477" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
+<B> Next:</B> <A NAME="tex2html1475" HREF="node93.html">Changing user properties</A>
+<B>Up:</B> <A NAME="tex2html1473" HREF="node88.html">Creating a user</A>
+<B> Previous:</B> <A NAME="tex2html1469" HREF="node91.html">Initial environment: /etc/skel</A>
+<BR> <P>
+<H2><A NAME="SECTION001024000000000000000">Creating a user by hand</A></H2>
+<A NAME="subsecmanualadduser">&#160;</A>
+<P>
+ To create a new account manually, follow these steps:
+ <OL>
+<LI> Edit <tt>/etc/passwd</tt><A NAME="2855">&#160;</A> with <tt>vipw</tt><A NAME="2857">&#160;</A>(8) and add a
+ new line for the new account. Be careful with
+ the syntax. <em>Do not edit directly with an
+ editor!</em> <tt>vipw</tt><A NAME="2859">&#160;</A> locks the file, so that
+ other commands won't try to update it at the
+ same time. You should make the password field be
+ `<tt>*</tt>', so that it is impossible to log in.
+<LI> Similarly, edit <tt>/etc/group</tt><A NAME="2861">&#160;</A> with <tt>vigr</tt><A NAME="2863">&#160;</A>, if
+ you need to create a new group as well.
+<LI> Create the home directory of the user with
+ <tt>mkdir</tt><A NAME="2865">&#160;</A>.
+<LI> Copy the files from <tt>/etc/skel</tt><A NAME="2867">&#160;</A> to the new home
+ directory.
+<LI> Fix ownerships and permissions with <tt>chown</tt><A NAME="2869">&#160;</A> and
+ <tt>chmod</tt><A NAME="2871">&#160;</A>. The <tt>-R</tt> option is most useful.
+ The correct permissions vary a little from one site
+ to another, but usually the following commands do
+ the right thing:
+<BLOCKQUOTE> <TT>
+cd <i>/home/newusername</i> <BR>
+chown -R <i>username.group</i> . <BR>
+chmod -R go=u,go-w . <BR>
+chmod go= .
+</TT></BLOCKQUOTE>
+<LI> Set the password with <tt>passwd</tt><A NAME="2873">&#160;</A>(1).
+ </OL>
+<P>
+ After you set the password in the last step, the account will
+ work. You shouldn't set it until everything else has been done,
+ otherwise the user may inadvertently log in while you're
+ still copying the files.
+<P>
+ It is sometimes necessary to create dummy
+ accounts<A NAME="tex2html43" HREF="footnode.html#2772"><IMG ALIGN=BOTTOM ALT="gif" SRC="./foot_motif.gif"></A> that are not used by
+ people. For example, to set up an anonymous FTP server
+ (so that anyone can download files from it, without
+ having to get an account first), you need to create an
+ account called <tt>ftp</tt>. In such cases, it is usually
+ not necessary to set the password (last step above).
+ Indeed, it is better
+ not to, so that no-one can use the account, unless
+ they first become <tt>root</tt>, since <tt>root</tt>
+ can become any user.
+<P>
+<HR><A NAME="tex2html1474" HREF="node93.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="./next_motif.gif"></A> <A NAME="tex2html1472" HREF="node88.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="./up_motif.gif"></A> <A NAME="tex2html1468" HREF="node91.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="./previous_motif.gif"></A> <A NAME="tex2html1476" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="./contents_motif.gif"></A> <A NAME="tex2html1477" HREF="node114.html"><IMG WIDTH=43 HEIGHT=24 ALIGN=BOTTOM ALT="index" SRC="./index_motif.gif"></A> <BR>
+<B> Next:</B> <A NAME="tex2html1475" HREF="node93.html">Changing user properties</A>
+<B>Up:</B> <A NAME="tex2html1473" HREF="node88.html">Creating a user</A>
+<B> Previous:</B> <A NAME="tex2html1469" HREF="node91.html">Initial environment: /etc/skel</A>
+<P><ADDRESS>
+<I>Lars Wirzenius <BR>
+Sat Nov 15 02:32:11 EET 1997</I>
+</ADDRESS>
+</BODY>
+</HTML>