当前位置: 技术问答>linux和unix
修改oracle用户主目录
来源: 互联网 发布时间:2016-10-04
本文导语: 环境 [root@store /]# cat /etc/redhat-release CentOS release 5.5 (Final) 修改oracle用户主目录 1.[oracle@store ~]$ id uid=501(oracle) gid=501(oracle) groups=501(oracle) context=user_u:system_r:unconfined_t 2.然后切换到root用户运行 [root@store /]# us...
环境 [root@store /]# cat /etc/redhat-release
CentOS release 5.5 (Final)
修改oracle用户主目录
1.[oracle@store ~]$ id
uid=501(oracle) gid=501(oracle) groups=501(oracle) context=user_u:system_r:unconfined_t
2.然后切换到root用户运行
[root@store /]# usermod -d /oracle -u 501
usermod: user 501 does not exist
oracle用户uid明明是501,为什么报这个用户不存在?
CentOS release 5.5 (Final)
修改oracle用户主目录
1.[oracle@store ~]$ id
uid=501(oracle) gid=501(oracle) groups=501(oracle) context=user_u:system_r:unconfined_t
2.然后切换到root用户运行
[root@store /]# usermod -d /oracle -u 501
usermod: user 501 does not exist
oracle用户uid明明是501,为什么报这个用户不存在?
|
usermod -d /oracle oracle
就行了 你又不修改uid
你man usermod看看吧
就行了 你又不修改uid
你man usermod看看吧
|
usermod -d /oracle oracle
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。