Small changes in mbsetup users and tty settings
This commit is contained in:
parent
33982e26b0
commit
6523fd275f
@ -4283,6 +4283,9 @@ v0.33.19 26-Oct-2001
|
||||
default mail areas, a newfilereport and the groups belonging
|
||||
to these areas. Also 10 oneliners are installed.
|
||||
Changed help for nodes billing flag.
|
||||
Changed users password length to 14 characters instead of 12.
|
||||
When you make a tty line available, some settings are
|
||||
automatic set to reasonable defaults.
|
||||
|
||||
mbsebbs:
|
||||
Added menu 317, change FS editor shortcut keys to (Emacs/
|
||||
|
@ -372,7 +372,20 @@ int EditTtyRec(int Area)
|
||||
case 4: E_STR( 10,21,20,ttyinfo.speed, "The ^Speed^ of this device")
|
||||
case 5: E_STR( 11,21,30,ttyinfo.flags, "The ^Fidonet Capability Flags^ for this tty line")
|
||||
case 6: ttyinfo.type = edit_linetype(12,21, ttyinfo.type); break;
|
||||
case 7: E_BOOL(13,21, ttyinfo.available,"Switch if this tty line is ^Available^ for use.")
|
||||
case 7: ttyinfo.available = edit_bool(13,21, ttyinfo.available,
|
||||
(char *)"Switch if this tty line is ^Available^ for use.");
|
||||
if (ttyinfo.available) {
|
||||
if ((ttyinfo.type == POTS) || (ttyinfo.type == ISDN)) {
|
||||
ttyinfo.callout = TRUE;
|
||||
ttyinfo.authlog = TRUE;
|
||||
ttyinfo.honor_zmh = TRUE;
|
||||
}
|
||||
if ((ttyinfo.type == POTS) && !ttyinfo.portspeed)
|
||||
ttyinfo.portspeed = 57600;
|
||||
else
|
||||
ttyinfo.portspeed = 0;
|
||||
}
|
||||
break;
|
||||
case 8: E_BOOL(14,21, ttyinfo.authlog, "Is mgetty ^Auth^ logging available")
|
||||
case 9: E_BOOL(15,21, ttyinfo.honor_zmh,"Honor ^Zone Mail Hour^ on this tty line")
|
||||
case 10:E_BOOL(16,21, ttyinfo.deleted, "Is this tty line ^deleted")
|
||||
|
@ -311,7 +311,7 @@ void Fields2(void)
|
||||
show_str(11,17,19, usrconfig.sVoicePhone);
|
||||
show_str(12,17,19, usrconfig.sDataPhone);
|
||||
show_str(13,17,10, usrconfig.sDateOfBirth);
|
||||
show_str(14,17,12, (char *)"********");
|
||||
show_str(14,17,Max_passlen, (char *)"**************");
|
||||
show_str( 15,17, 7,usrconfig.sSex);
|
||||
show_str( 16,17,12,usrconfig.sProtocol);
|
||||
show_str( 17,17, 5,usrconfig.Archiver);
|
||||
@ -353,7 +353,7 @@ int EditUsrRec2(void)
|
||||
case 6: E_STR(11,17,16, usrconfig.sVoicePhone, "The ^Voice Phone^ number of this user")
|
||||
case 7: E_STR(12,17,16, usrconfig.sDataPhone, "The ^Data Phone^ number of this user")
|
||||
case 8: E_STR(13,17,10, usrconfig.sDateOfBirth,"The ^Date of Birth^ in DD-MM-YYYY format")
|
||||
case 9: strcpy(temp, edit_str(14,17,12, usrconfig.Password, (char *)"Enter the ^password^ for this user"));
|
||||
case 9: strcpy(temp,edit_str(14,17,Max_passlen,usrconfig.Password,(char *)"Enter the ^password^ for this user"));
|
||||
if (strlen(temp)) {
|
||||
if (strcasecmp(usrconfig.Password, temp)) {
|
||||
/*
|
||||
@ -363,8 +363,8 @@ int EditUsrRec2(void)
|
||||
memset(&usrconfig.Password, 0, sizeof(usrconfig.Password));
|
||||
strcpy(usrconfig.Password, temp);
|
||||
usrconfig.tLastPwdChange = time(NULL);
|
||||
Syslog('+', "%s/bin/mbpasswd -n %s ******", getenv("MBSE_ROOT"), usrconfig.Name);
|
||||
sprintf(temp, "%s/bin/mbpasswd -n %s %s", getenv("MBSE_ROOT"), usrconfig.Name, usrconfig.Password);
|
||||
Syslog('+', "%s/bin/mbpasswd -f %s ******", getenv("MBSE_ROOT"), usrconfig.Name);
|
||||
sprintf(temp, "%s/bin/mbpasswd -f %s %s", getenv("MBSE_ROOT"), usrconfig.Name, usrconfig.Password);
|
||||
if (system(temp) != 0) {
|
||||
WriteError("$Failed to set new Unix password");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user