OCTADE |
mail  files  register  groups  login |
1 |
<044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=45&group=rocksolid.nodes.announce#45
copy link Newsgroups: rocksolid.nodes.announceI'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
<f087c84632525dc366c542f5864a1e19@www.novabbs.org>
copy midhttps://news.octade.net/rocksolid/article-flat.php?id=46&group=rocksolid.nodes.announce#46
copy link Newsgroups: rocksolid.nodes.announceRetro 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
1 |