linux系统.bash_profile readonly问题解决
linux系统中oracle用户修改自己的.bash_profile 环境变量配置文件时提示readonly,不能成功修改该文件。解决步骤:root用户下执行:ls -lh /home/oracle/.bash_profile结果:-rwxrwxr-x 1 500 500 292 Sep5 09:50 /home/oracle/.bash_profile原来的oracle用户的id 5...
·
linux系统中oracle用户修改自己的.bash_profile 环境变量配置文件时提示readonly,不能成功修改该文件。
解决步骤:root用户下执行:
ls -lh /home/oracle/.bash_profile
结果:-rwxrwxr-x 1 500 500 292 Sep 5 09:50 /home/oracle/.bash_profile
原来的oracle用户的id 500,原来的oinstall组的id 500。都已被删除。
新的的oracle用户的id 200,原来的oinstall组的id 200。
执行了如下语句,讲.bash_profile的归属用户和组改为现在的oracle和oinstall。
chown 200:200 /home/oracle/.bash_profile
ls -lh /home/oracle/.bash_profile
结果变为:-rwxrwxr-x 1 oracle oinstall 292 Sep 5 09:50 /home/oracle/.bash_profile
再切换到oracle ,vi .bash_profile问题已解决
更多推荐
已为社区贡献1条内容
所有评论(0)