tomcat用户权限配置
2013-10-16 15:36
288 查看
401 UnauthorizedYou are not authorized to view this page. If you have not changed any configuration files, please examine the fileconf/tomcat-users.xml in your installation. Thatfile must contain the credentials to let you use this webapp.For example, to add the manager-gui role to a user named tomcat with a password ofs3cret,add the following to the config file listed above.
<role rolename="manager-gui"/> <user username="tomcat" password="s3cret" roles="manager-gui"/>
一开始
%CATALINA_HOME/conf/tomcat-user.xml该文件为空,必须要配置该文件才能管理tomcat应用。
对于manager app需要配置<role rolename="manager-gui"/>,而对于manager app需要配置<role rolename="admin-gui"/>,
这样可以通过admin这个账户访问了。
在tomcat参考文档中我们可以看到:manager-gui — Access to the HTML interface.manager-status — Access to the "Server Status" page only.manager-script — Access to the tools-friendly plain text interface that is described in this document, and to the "Server Status" page.manager-jmx — Access to JMX proxy interface and to the "Server Status" page.这些角色是系统自带的,可以给某些用户配置这些权限,只要配置roles=“”即可
相关文章推荐
- Jenkins 配置用户权限 + Tomcat 发布
- tomcat配置用户权限
- Jenkins + Git + Maven + tomcat集成环境(Jenkins 配置-添加用户和管理权限)
- tomcat6.0的tomcat-users.xml配置文件 (用户权限)
- t3用户-角色-权限hibernate经典配置
- t3用户-角色-权限hibernate经典配置
- shiro实现url级别的权限控制(用户登录)配置文件分析
- Redis/MongoDB用户权限配置
- oracle创建表空间、用户、和权限配置
- linux下Tomcat配置提示权限不够解决办法
- centos 7开启FTP以及添加用户配置权限,只允许访问自身目录,不能跳转根目录
- Linux上创建FTP用户并配置权限
- linux常用命令-用户,组,权限,用户配置文件,特殊权限uid/gid/sticky
- linux 配置用户sudo权限
- Linux用户配置sudo权限(visudo)
- mongoDB 3.0在windows下配置用户权限
- CVSNT用户权限配置
- Mac os x 下配置Intellij IDEA + Tomcat 出现权限问题的解决办法
- Linux下配置权限受限制的SFTP用户教程
- git在linux上的安装配置包括设置不同用户的权限