🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rocksolid.nodes.announce
Article #530

Re: account_manager script in rslight

#530
From: Retro Guy
Date: Tue, 02 Jul 2024 13:35
44 lines
3184 bytes
Retro Guy wrote:

> I've created a new script for rslight in
> $config_dir/scripts/account_manager.php
>
> $php ./account_manager.php
> -help: This help page
> -version: Display version
> -create: Create user account '-create username password email'
> -newpass: Change user password '-newpass username newpassword'
> -delete: Delete user account '-delete username'
>          Be careful with this. You will not be asked to confirm
>          Account files will be placed in a dir named 'deleted'
>
> This should make it easier for an admin to manage accounts. I know I
> find it a nuisance to need to change a user's password, create an
> account manually, etc., so this script should be quite helpful.
>
> Also, for this script, and maintenance.php, it is no longer necessary to
> switch to the $webdir/spoolnews dir. This is handled automatically. You
> still need to run as your web server user so files are created with
> correct permissions.

I've added a few more tasks that can be handled with
account_manager.php:

$ php ./account_manager.php

-help: This help page
-version: Display version
-create: Create user account '-create username password email'
-newpass: Change user password '-newpass username newpassword'
-newemail: Change user email '-newemail username emailaddress'
           Email address will remain listed as 'verified'
           Be sure to verify the address is correct
-banuser: Disable ability for user to log in '-banuser username'
          This doesn't block the site, just posting and other user
features
-delete: Delete user account '-delete username'
         Be careful with this. You will not be asked to confirm
         Account files will be placed in a dir named 'deleted'

-- 
Retro Guy
Technical Details
Message-ID: <f087c84632525dc366c542f5864a1e19@www.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail
References: <044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>

Show Full Headers
Complete Article Headers
Message-ID: <f087c84632525dc366c542f5864a1e19@www.novabbs.org>
Subject: Re: account_manager script in rslight
Date: Tue, 2 Jul 2024 13:35:30 +0000
From: Retro Guy <retroguy@novabbs.com>
References: <044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
 logging-data="1911751"; mail-complaints-to="usenet@i2pn2.org";
 posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
 ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
 H0=hZt'[%)4kG|
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
X-Rslight-Site: $2y$10$P/EYMxMmkDj27Ly/mPw40eG5nu2uVf7ZhJyfpFrY8iWFD3L.0XbVK