Made mbsebbs non setuid, added program mbnewusr

This commit is contained in:
Michiel Broek
2001-11-10 17:14:16 +00:00
parent 785fb988fb
commit e87e7c2ab6
57 changed files with 2677 additions and 2882 deletions

View File

@@ -1,8 +1,7 @@
/*****************************************************************************
*
* File ..................: client.c
* $Id$
* Purpose ...............: MBSE Deamon Client
* Last modification date : 27-May-2001
*
*****************************************************************************
* Copyright (C) 1993-2000
@@ -86,6 +85,8 @@ int socket_connect(char *user, char *prg, char *city)
*/
if (getuid() != geteuid()) {
chown(cpath, getuid(), getgid());
} else {
chmod(cpath, 0775);
}
/*

View File

@@ -1,8 +1,7 @@
/*****************************************************************************
*
* File ..................: mbse.h
* $Id$
* Purpose ...............: Global variables for MBSE BBS
* Last modification date : 22-Oct-2001
*
*****************************************************************************
* Copyright (C) 1997-2001
@@ -98,13 +97,11 @@ char LastLoginTime[9]; /* Last login time */
char LastCaller[36]; /* Last caller on system */
char FirstName[20]; /* Users First name */
char LastName[30]; /* Users Last name */
int LoginPrompt; /* Login prompt check - timeout */
int UserAge; /* Users age */
int grecno; /* User's Record Number in user file */
int SYSOP; /* Int to see if user is Sysop */
int iLineCount; /* Line Counter */
int iExpired; /* Check if users time ran out */
int iUnixMode; /* Using Unix Accounts */
char sUnixName[9]; /* Unix login name */
time_t Time2Go; /* Calculated time to force logout */
struct tm *l_date; /* Structure for Date */

View File

@@ -623,7 +623,7 @@ struct sysconfig {
/* BBS Globals */
int max_login; /* Maximum login attempts */
unsigned NewAreas : 1; /* Notify if new msg areas */
unsigned elite_mode : 1; /* Allow new users/Private? */
unsigned xelite_mode : 1;
unsigned slow_util : 1; /* Run utils slowly */
unsigned exclude_sysop : 1; /* Exclude Sysop from lists */
unsigned xUseSysDomain : 1;