Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
3d5b17c6
Commit
3d5b17c6
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
New module to automate the creation of the Guest account.
parent
1304cec8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/makeguest.js
+36
-0
36 additions, 0 deletions
exec/makeguest.js
with
36 additions
and
0 deletions
exec/makeguest.js
0 → 100644
+
36
−
0
View file @
3d5b17c6
// makeguest.js
// Don't create guest account if sysop account hasn't been created yet
// $Id$
if
(
!
system
.
stats
.
total_users
)
{
printf
(
"
No users in database.
\r\n
"
);
exit
();
}
// If guest account exists, exit
if
(
system
.
matchuser
(
"
Guest
"
))
{
printf
(
"
Guest account already exists.
\r\n
"
);
exit
();
}
load
(
"
sbbsdefs.js
"
);
// needed for UFLAG_* definitions
// Create the account
user
=
system
.
new_user
(
"
Guest
"
);
user
.
gender
=
'
?
'
;
user
.
comment
=
"
This is the auto-generated Guest/Anonymous user account.
"
;
// Setup intelligent security parameters
user
.
security
.
restrictions
|=
UFLAG_G
;
// can't edit defaults (main 'Guest' indicator)
user
.
security
.
restrictions
|=
UFLAG_K
;
// can't read sent mail
user
.
security
.
restrictions
|=
UFLAG_P
;
// can't post
user
.
security
.
restrictions
|=
UFLAG_M
;
// can't post on networked subs (redundant)
user
.
security
.
restrictions
|=
UFLAG_W
;
// can't write to the auto-message
user
.
security
.
exemptions
|=
UFLAG_G
;
// multiple simultaneous logins
user
.
security
.
exemptions
|=
UFLAG_L
;
// unlimited logons per day
user
.
security
.
exemptions
|=
UFLAG_T
;
// unlimited time online
user
.
security
.
exemptions
|=
UFLAG_P
;
// permanent (never expires)
printf
(
"
Guest account (#%d) created successfully
\r\n
"
,
user
.
number
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment