2003-11-08 16:48:03 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2002-02-17 13:24:26 +00:00
|
|
|
<HTML>
|
|
|
|
<!-- $Id$ -->
|
|
|
|
<HEAD>
|
2003-11-08 18:49:36 +00:00
|
|
|
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
2002-02-17 13:24:26 +00:00
|
|
|
<META http-equiv="Content-Style-Type" content="text/css">
|
2003-11-08 16:48:03 +00:00
|
|
|
<META NAME="Language" content='en'>
|
2002-02-17 13:24:26 +00:00
|
|
|
<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>
|
2003-11-08 16:48:03 +00:00
|
|
|
<div align="right"><h5>Last update 02-Feb-2001</h5></div>
|
|
|
|
<div align="center"><H1>mbuseradd - The useradd wrapper.</H1></div>
|
2002-02-17 13:24:26 +00:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2003-08-18 11:48:36 +00:00
|
|
|
<A HREF="index.htm"><IMG SRC="../images/larrow.png" ALT="Index" Border="0">Back to index</A>
|
|
|
|
<A HREF="../index.htm"><IMG SRC="../images/b_arrow.png" ALT="Main" Border="0">Back to Main index</A>
|
2002-02-17 13:24:26 +00:00
|
|
|
</BLOCKQUOTE>
|
|
|
|
</BODY>
|
|
|
|
</HTML>
|
|
|
|
|