虚位以待(AD)
虚位以待(AD)
首页 > 数据库 > Oracle数据库 > 解决useradd:warning:the home directory already...的问题

解决useradd:warning:the home directory already...的问题
类别:Oracle数据库   作者:码皇   来源:互联网   点击:

解决useradd:warning:the home directory already 的问题在RHEL 5或CentOS5中安装oracle11g时, www 2cto com groupadd oinstallgroupadd dbamkdir -p u01 oracle ( u01 oracle 就在这里安装Or

解决useradd:warning:the home directory already...的问题   在RHEL 5或CentOS5中安装oracle11g时,   www.2cto.com   groupadd oinstall   groupadd dba   mkdir -p /u01/oracle ( /u01/oracle 就在这里安装Oracle 11g) 建立用户: useradd -g oinstall -G dba -d /u01/oracle oracle 结果报错: useradd: warning: the home directory already exists. Not copying any file from skel directory into it.   进入/u01/oracle目录,没有.bash_profile',.bashrc,bash_logout   原因:   系统添加用户的标准步骤 1.编辑/etc/passwd与/etc/group 2.创建用户主目录 3.从/etc/skel拷贝文件与目录 4.让新用户获得其主目录与文件的拥有权限 5.给新用户一个密码   <!--[if !ppt]--><!--[endif]-->    解决办法: 依旧使用上面的脚本建用户,然后手动拷贝配置文件到/u01/oracle下。   cp /etc/skel/.bash_profile /u01/oracle   cp /etc/skel/.bashrc /u01/oracle   cp /etc/skel/.bash_logout /u01/oracle   这样既可。
 
相关热词搜索: 解决 useradd:warning:the home