问题描述:
ubuntu中存在两个用户:User1、user2
user1中安装了weblogic 、user2中放置了web工程
最初weblogic无法访问 user2 文件权限中的 web工程,于是进入到user2启动weblogic,此时一切正常。
后来还是想在user1下完成所有操作,于是修改了web工程的用户组,和用户,但此时weblogic在user1下已经无法启动
错误信息:
<Sep 21, 2009 2:09:19 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file /opt/ccibs/weblogic10/user_projects/domains/base_domain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>
<Sep 21, 2009 2:09:20 PM CST> <Error> <EmbeddedLDAP> <BEA-000000> <Error opening the Transaction Log: /opt/ccibs/weblogic10/user_projects/domains/base_domain/servers/AdminServer/data/ldap/ldapfiles/EmbeddedLDAP.tran (Permission denied)>
<Sep 21, 2009 2:09:20 PM CST> <Error> <EmbeddedLDAP> <BEA-000000> <Error Instantiating 'dc=base_domain': null>
<Sep 21, 2009 2:09:20 PM CST> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thrown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in /opt/ccibs/weblogic10/user_projects/domains/base_domain/servers/AdminServer/data/ldap/backup.>
<Sep 21, 2009 2:09:20 PM CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot
at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:273)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
经过查看发现EmbeddedLDAP.tran 等文件的用户组和用户都变成了root,由此显然程序无法运行。改回user1 一切ok。
命令:
修改用户组
chgrp - R user1 /opt/ user1
修改用户
chown - R user1 /user1
参考文章:
Linux 修改文件及文件夹权限
http://hi.baidu.com/eagle_shao/blog/item/9dd700605261984deaf8f82b.html