🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: rocksolid.nodes.announce
2 messages
2 total messages Started by Retro Guy Tue, 02 Jul 2024 07:04
account_manager script in rslight
#528
Author: Retro Guy
Date: Tue, 02 Jul 2024 07:04
23 lines
2085 bytes
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.

-- 
Retro Guy
Re: account_manager script in rslight
#530
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads