Made mbsebbs non setuid, added program mbnewusr
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user