Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Don't plan any hasty moves. You'll be evicted soon anyway.


rocksolid / Rocksolid Nodes Announce / account_manager script in rslight

SubjectAuthor
* account_manager script in rslightRetro Guy
`- Re: account_manager script in rslightRetro Guy

1
Subject: account_manager script in rslight
From: Retro Guy
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Tue, 2 Jul 2024 07:04 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: account_manager script in rslight
Date: Tue, 2 Jul 2024 07:04:18 +0000
Organization: Rocksolid Light
Message-ID: <044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1880262"; mail-complaints-to="usenet@i2pn2.org";
posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
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-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$aQDj3wXHcOgUItTQU8QkJ.84W3XcP.QJPrVEOoJ9M8Dri7xfE/nw2
View all headers

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

Subject: Re: account_manager script in rslight
From: Retro Guy
Newsgroups: rocksolid.nodes.announce
Organization: Rocksolid Light
Date: Tue, 2 Jul 2024 13:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!weretis.net!feeder8.news.weretis.net!news.neodome.net!rocksolid2!i2pn2.org!.POSTED!not-for-mail
From: retroguy@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.announce
Subject: Re: account_manager script in rslight
Date: Tue, 2 Jul 2024 13:35:30 +0000
Organization: Rocksolid Light
Message-ID: <f087c84632525dc366c542f5864a1e19@www.novabbs.org>
References: <044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>
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
View all headers

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

1

rocksolid light 0.9.8
clearnet tor