Topic: [Tomcat求助]如何手动设定管理员的账号和密码?

  Print this page

1.[Tomcat求助]如何手动设定管理员的账号和密码? Copy to clipboard
Posted by: jfml
Posted on: 2003-07-09 09:40

因我一定要用binary版本的tomcat

但我不知道在tomcat目录中哪里设定管理员的账号和密码

请知道的朋友指点一二

谢谢

2.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: dapan
Posted on: 2003-07-09 09:42

X:\Tomcat 4.1\conf\tomcat-users.xml

^_^

3.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-09 09:47

楼上的朋友,先谢谢你

不过我知道是在这里编辑的

但是我想加一个root/root的账号,拥有所有的权限,那么它的roles应该是什么呢?

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>

4.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: nothing
Posted on: 2003-07-09 10:01

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="root" password="root" roles="tomcat,role1"/>
</tomcat-users>

5.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-09 10:08

似乎不行啊,用tomcat/tomcat或者root/root登陆manager

结果

HTTP Status 403 - Access to the requested resource has been denied

--------------------------------------------------------------------------------

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.

6.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: errorter
Posted on: 2003-07-09 10:18

设置 roles="manager"

就可以登陆 Tomcat Manager

7.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: errorter] Copy to clipboard
Posted by: ditty
Posted on: 2003-07-09 10:28

errorter wrote:
设置 roles="manager"

就可以登陆 Tomcat Manager

设置 roles="manager,admin"

就可以登陆 Tomcat Manager & Admin

8.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: nothing
Posted on: 2003-07-09 10:51

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="111111" roles="admin,manager"/>
<user username="root" password="root" roles="admin,manager"/>
</tomcat-users>

9.Re:[Tomcat求助]如何手动设定管理员的账号和密码? [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-09 10:52

搞定了,谢谢楼上几位


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923