Bugzilla缺少超级用户信息

Vla*_*mir 2 authentication bugzilla login

我在我的系统上设置了Bugzilla服务器,并意外丢失了登录信息.我已经对它进行过研究,但到目前为止还没有任何工作.我试图做的事情是:

我尝试使用MySQL界面添加更多管理用户.从命令行运行"mysql",并使用以下命令:

mysql> use bugs;<br />
mysql>  update profiles set groupset=0x7ffffffffffffff where login_name = "admin";<br />
Run Code Online (Sandbox Code Playgroud)

我收到一条错误消息:

ERROR 1054 (42S22): Unknown column 'groupset' in 'field list'
Run Code Online (Sandbox Code Playgroud)

我还发现,我用管理员登记我的电子邮件,但我不能恢复我的密码:

mysql> select login_name from profiles where userid=1; 
+-------------------+
| login_name        |
+-------------------+
| admin@example.com |
+-------------------+
1 row in set (0.00 sec)
Run Code Online (Sandbox Code Playgroud)

任何时候我试图删除超级用户我得到了这个:

mysql> delete from  profiles where userid=1; 
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`bugzilla`.`components`, CONSTRAINT `fk_components_initialowner_profiles_userid` FOREIGN KEY (`initialowner`) REFERENCES `profiles` (`userid`) ON UPDATE CASCADE)
mysql> update profiles set groupset=0x7ffffffffffffff where login_name = "(user's login name)";
Run Code Online (Sandbox Code Playgroud)

我用密码更改了密码

sudo checksetup.pl --reset-password=admin@example.com
Run Code Online (Sandbox Code Playgroud)

尝试登录到本地主机的Bugzilla用户名:密码admin@example.com(我的密码)

我收到以下内部错误:

Bugzilla has suffered an internal error. Please save this page and send it to admin@example.com with details of what you were doing at the time this message appeared.

There was an error sending mail from 'bugzilla-daemon' to 'admin@example.com': Couldn't find 'sendmail' executable in your PATH and $Email::Send::Sendmail::SENDMAIL is not set
Traceback:

 at Bugzilla/Mailer.pm line 190
    Bugzilla::Mailer::MessageToMTA(...) called at Bugzilla/Token.pm line 307
    Bugzilla::Token::Cancel(...) called at Bugzilla/Token.pm line 323
    Bugzilla::Token::DeletePasswordTokens(...) called at Bugzilla/Auth/Verify/DB.pm line 85
    Bugzilla::Auth::Verify::DB::check_credentials(...) called at Bugzilla/Auth/Verify/Stack.pm line 62
    Bugzilla::Auth::Verify::Stack::check_credentials(...) called at Bugzilla/Auth.pm line 72
    Bugzilla::Auth::login(...) called at Bugzilla.pm line 345
    Bugzilla::login(...) called at /var/www/bugzilla/index.cgi line 40
Run Code Online (Sandbox Code Playgroud)

有没有办法改变用户名?

到目前为止没有任何工作.我如何登录Bugzilla?谢谢

Joa*_*son 7

您可以使用该checksetup.pl脚本来执行此操作.

checksetup.pl --reset-password=admin@example.com` 
Run Code Online (Sandbox Code Playgroud)

  • @Vladimir在您编辑的问题中,您似乎收到了与丢失`sendmail`相关的错误.尝试`sudo apt-get install sendmail-bin`并尝试重新登录. (4认同)