Linux 修改文件及文件夹权限

问题描述:

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值