2002-02-17 13:24:26 +00:00
|
|
|
<HTML>
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<HEAD>
|
|
|
|
<META http-equiv="Content-Type" content="text/html; charset=ISO 8859-1">
|
|
|
|
<META http-equiv="Content-Style-Type" content="text/css">
|
|
|
|
<META name="author" lang="en" content="Michiel Broek">
|
|
|
|
<META name="copyright" lang="en" content="Copyright Michiel Broek">
|
|
|
|
<META name="description" lang="en" content="MBSE BBS Manual">
|
|
|
|
<META name="keywords" lang="en" content="MBSE BBS, MBSE, BBS, manual, fido, fidonet, gateway, tosser, mail, tic, mailer">
|
|
|
|
<TITLE>MBSE BBS Programs - mbuseradd - The useradd wrapper.</TITLE>
|
|
|
|
<LINK rel=stylesheet HREF="../manual.css">
|
|
|
|
</HEAD>
|
|
|
|
<BODY>
|
|
|
|
<BLOCKQUOTE>
|
|
|
|
<h5>Last update 02-Feb-2001</h5>
|
|
|
|
<P> <P>
|
|
|
|
|
|
|
|
<H1>mbuseradd - The useradd wrapper.</H1>
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<H3>Sysnopsis.</H3>
|
|
|
|
<P>
|
|
|
|
<code><strong>mbuseradd</strong> [gid] [username] [comment] [userdir]</code>
|
|
|
|
<P> <P>
|
|
|
|
|
|
|
|
<H3>Description.</H3>
|
|
|
|
<P>
|
|
|
|
<strong>mbuseradd</strong> is the wrapper for the <strong>useradd</strong>
|
2003-08-15 20:05:34 +00:00
|
|
|
program that should be present on most GNU/Linux systems. <strong>useradd</strong>
|
2002-02-17 13:24:26 +00:00
|
|
|
may only be executed by <strong>root</strong> and there are some other minor
|
|
|
|
things that need to be done as <strong>root</strong> to create a new Unix
|
|
|
|
account that can be used with MBSE BBS. The solution for these problems is
|
|
|
|
<strong>mbuseradd</strong>, this little program runs setuid root and setgid
|
|
|
|
root. If it fails to do that it aborts. <strong>mbuseradd</strong> is called
|
|
|
|
by <strong>mbsebbs</strong> from the newuser function. You never need to
|
|
|
|
run <strong>mbuseradd</strong> by hand. If it is successfull the user will
|
|
|
|
have an entry in /etc/passwd, the comment is his Fidonet name, and his shell
|
|
|
|
is $MBSE_ROOT/bin/mbsebbs.
|
|
|
|
<P>
|
|
|
|
If all this is successfull until now, the homedirectory for this user is
|
|
|
|
created and the right ownership and permissions are set. In his homedirectory
|
|
|
|
the empty file <strong>.hushlogin</strong> is placed to prevent check for
|
|
|
|
new mail when he logs into your system. This is the Unix mailcheck that is
|
|
|
|
skipped and has nothing todo with the check for new mail in the bbs. All
|
|
|
|
other directories that are needed for the bbs are created by <b>mbsebbs</b>.
|
|
|
|
<P> <P>
|
|
|
|
|
|
|
|
<H3>Environment.</H3>
|
|
|
|
<P>
|
|
|
|
In order to run <strong>mbuseradd</strong> you must set the global variable
|
|
|
|
<strong>$MBSE_ROOT</strong>. This variable must point to the root directory
|
|
|
|
of the bbs structure. The main configuration file <strong>config.data</strong>
|
|
|
|
must be present in the ~/etc directory. <strong>mbuseradd</strong> must be
|
|
|
|
installed setuid root and setgid root, ls -la looks like this:<br>
|
|
|
|
<pre>
|
|
|
|
-rws--s--x 1 root root 6644 Jun 26 21:23 /opt/mbse/bin/mbuseradd*
|
|
|
|
</pre>
|
|
|
|
<P> <P>
|
|
|
|
|
|
|
|
<H3>Commands.</H3>
|
|
|
|
<P>
|
|
|
|
<code><strong>mbuseradd</strong> [gid] [name] [comment] [usersdir]</code> for example:<br>
|
|
|
|
<pre>
|
|
|
|
mbuseradd bbs mbroek "Michiel Broek" /opt/mbse/home
|
|
|
|
</pre>
|
|
|
|
<P>
|
|
|
|
|
|
|
|
<A HREF="index.htm"><IMG SRC="../images/larrow.gif" ALT="Index" Border="0">Back to index</A>
|
|
|
|
<A HREF="../index.htm"><IMG SRC="../images/b_arrow.gif" ALT="Main" Border="0">Back to Main index</A>
|
|
|
|
</BLOCKQUOTE>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|
|
|
|
|