Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1082583
  • 博文数量: 227
  • 博客积分: 6860
  • 博客等级: 准将
  • 技术积分: 2688
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-02 16:06
文章分类

全部博文(227)

文章存档

2015年(7)

2014年(8)

2012年(5)

2011年(62)

2010年(145)

分类: LINUX

2014-05-12 16:59:05

rhel5 新建用户提示:the home directory already exists.(as4不存在这个问题)

环境如下:

[oracle@rhel5 ~]$ df -h
Filesystem            Size Used Avail Use% Mounted on
/dev/sda3             6.7G 2.9G 3.5G 46% /
/dev/sda2              22G 173M   21G   1% /oracle
/dev/sda1              99M   12M   83M 13% /boot
tmpfs                 250M     0 250M   0% /dev/shm
/dev/hdc               34M   34M     0 100% /media/cdrom

[root@rhel5 ~]# useradd -g dba -u 505 -d /oracle oracle
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.

解决办法:

[root@rhel5 ~]# cp /etc/skel/.bash* /oracle/
[root@rhel5 ~]# passwd oracle

[root@rhel5 ~]# chown -R oracle:dba /oracle/

阅读(1787) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~