免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: shaoping
打印 上一主题 下一主题

Solaris 能以root log on, 但不用能其它的用户名long on. [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-12-02 09:30 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

因为这台机器不是新做的,之前就有很多用户存在。

论坛徽章:
0
12 [报告]
发表于 2003-12-02 10:29 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

useradd -u 100 -g sys -G adm -s /sbin/sh -d / XXX(用户名)

请问大家,用怎样的command 增加一个用户才可以正常long on.

Thank anybody.

论坛徽章:
0
13 [报告]
发表于 2003-12-02 10:35 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

在linux 下added 了一个用户,那么我们就能在/home 下找到相对应的目录。如果我们在Solaris 下增加了一个用户,在那里可以找到相对应的目录呢? 我试着找过,但找不着....

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
14 [报告]
发表于 2003-12-02 10:43 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

>; -d /

这个是错的,怎么能把根目录作为普通用户的家目录?设成/export/home/xxx.

论坛徽章:
0
15 [报告]
发表于 2003-12-02 10:45 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

原帖由 "laoxia" 发表:
>; -d /

这个是错的,怎么能把根目录作为普通用户的家目录?设成/export/home/xxx.

yup

论坛徽章:
0
16 [报告]
发表于 2003-12-02 10:52 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

原帖由 "nasvel" 发表:
Hi,

check if the /etc/nologin exists, if yes, remove it.

nasvel


Hi, 我在/etc 下找不到那个 nologin ...

论坛徽章:
0
17 [报告]
发表于 2003-12-02 17:42 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

执行useradd时,如果为新用户指定的目录在系统中已经存在,执行:
#useradd -d /export/home/user01 -s /bin/csh user01
即可。
如果指定的目录不存在,则需增加“-m”选项,表示自动建立用户目录,执行:
#useradd -m -d /export/home/user01 -s /bin/csh user01
即可。登录的时候不会有问题,也可以在目录下看到用户初始的配置文件。

论坛徽章:
33
荣誉会员
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT运维版块每日发帖之星
日期:2016-04-17 06:23:27操作系统版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-24 06:20:0015-16赛季CBA联赛之天津
日期:2016-05-06 12:46:59
18 [报告]
发表于 2003-12-02 18:06 |只看该作者

Solaris 能以root log on, 但不用能其它的用户名long on.

check the /etc/passwd, confirm the user's shell is right, and the "home directory" is exist. than try again.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP