首页 > 其他 > 详细

Create a new user

时间:2014-03-25 11:03:04      阅读:407      评论:0      收藏:0      [点我收藏+]

$ su - weblogic

I was going to install weblogic in my local. So I created a specific user for it.

useradd

$ sudo useradd weblogic -s /bin/bash -m -d /home/weblogic -c "weblogic user"

1. create a user nemed weblogic and meanwhile a new group will be created, named weblogic also. User weblogic belongs to group weblogic.

2. -s /bin/bash. Set login default shell to /bin/bash

3. -m. Create home folder if it does not exist.

4. -d /home/weblogic. Create home directory of weblogic.

passwd

Set password for this new user.

$ passwd weblogic

Login

Now you can try to login with this user

$ su - weblogic



Create a new user,布布扣,bubuko.com

Create a new user

原文:http://blog.csdn.net/neuandustbneo/article/details/21959597

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!