Make sure account_manager.php can write to banned_users.conf.

This commit is contained in:
Retro_Guy 2024-07-02 06:43:14 -07:00
parent dea38fc6ff
commit 7471a9ec51
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ $cwd = getcwd();
$webtmp = preg_replace('/spoolnews/', 'tmp/', $cwd);
$keydir = preg_replace('/spoolnews/', 'pubkey/', $cwd);
$banfile = $config_dir . '/banned_users.conf';
@chown($banfile, $uinfo["uid"]);
@mkdir($webtmp, 0755, 'recursive');
@chown($webtmp, $uinfo["uid"]);
@chgrp($webtmp, $uinfo["gid"]);