免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3076 | 回复: 8
打印 上一主题 下一主题

菜鸟求教:相同的id ,不同的用户名,不同的密码 怎么设 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-01 10:18 |只看该作者 |倒序浏览
solaris 8 下两个用户名,不同的密码,但是user id 是相同的,一个用于直接登录,一个用于ftp ,应该怎么设?\r\n我用admin tool ,先建一个,再建一个的时候就说user id 重复了,但是我的机器上有个用户是这样的.

论坛徽章:
0
2 [报告]
发表于 2006-11-01 10:30 |只看该作者
user ID怎么能相同呢?不可以吧!\r\n?

论坛徽章:
0
3 [报告]
发表于 2006-11-01 10:45 |只看该作者
你的门牌号跟你的邻居能一样吗?

论坛徽章:
0
4 [报告]
发表于 2006-11-01 11:25 |只看该作者
用useradd -d /dir1  -m  username1\r\n   useradd -d /dir2  -m  username2\r\n然后用vi 修改/etc/passwd,把username2的uid设的和USERNAME1一样

论坛徽章:
0
5 [报告]
发表于 2006-11-01 11:49 |只看该作者
你只能手工编辑/etc/passwd文件来完成,然后pwconv,然后passwd newuser

论坛徽章:
0
6 [报告]
发表于 2006-11-01 11:53 |只看该作者
高手就是高手,thank you very much!!

论坛徽章:
0
7 [报告]
发表于 2006-11-01 13:04 |只看该作者
UID是可以一样的,和和,手工修改PASSWD文件

论坛徽章:
0
8 [报告]
发表于 2006-11-01 23:54 |只看该作者
It is possible and permissible to create more than one username in the password file \r\nwith the same UID. Each username will have its own unique password. \r\n\r\nHowever, tools such as ls and ps, when used with options displaying username, \r\nwill display the first username found in the password file matching the UID.\r\n\r\n----- Sun Certified System Administrator for Solaris 8 Study Guide\r\n        By Peter H. Gregory, Sun Microsystems, Inc.

论坛徽章:
0
9 [报告]
发表于 2006-11-02 13:35 |只看该作者
可以在useradd 加\"-o\" 参数,并指定uid就可以了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP