免费注册 查看新帖 |

Chinaunix

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

问个关于SUN的GROUP的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-07-05 13:12 |只看该作者 |倒序浏览
我在系统里面USERADD了好几个帐号,怎么GROUP这文件一点不变了,没有任何象别的UNIX系统那样,帐号加了,在GROUP里面有该帐号组的信息啊??


然后我想自己加组的,可是没有什么ADDGROUP,GROUPADD等命令,真郁闷,这个组怎么加呢?

论坛徽章:
0
2 [报告]
发表于 2003-07-07 00:24 |只看该作者

问个关于SUN的GROUP的问题

PATH设置问题.

论坛徽章:
0
3 [报告]
发表于 2003-07-07 00:28 |只看该作者

问个关于SUN的GROUP的问题

try to use SMC

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2003-07-07 00:51 |只看该作者

问个关于SUN的GROUP的问题

>; 然后我想自己加组的,可是没有什么ADDGROUP,GROUPADD等命令,真郁闷,这个组怎么加呢?

groupadd

>; 我在系统里面USERADD了好几个帐号,怎么GROUP这文件一点不变了,没有任何象别的UNIX系统那样,帐号加了,在GROUP里面有该帐号组的信息啊??

groups  username

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
5 [报告]
发表于 2003-07-07 00:55 |只看该作者

问个关于SUN的GROUP的问题

ZT

Guidelines for Managing Groups
A group is a collection of users who can share files and other system resources. For example, the set of users working on the same project could be formed into a group. A group is traditionally known as a UNIX group.

Each group must have a name, a group identification (GID) number, and a list of user names that belong to the group. A GID identifies the group internally to the system. The two types of groups that a user can belong to are:

Primary group – Specifies a group that the operating system assigns to files created by the user. Each user must belong to a primary group.

Secondary groups – Specifies one or more groups to which a user also belongs. Users can belong to up to 15 secondary groups.

Sometimes a user's secondary group is not important. For example, ownership of files reflect the primary group, not any secondary groups. Other applications, however, might rely on a user's secondary memberships. For example, a user has to be a member of the sysadmin group (group 14) to use the Admintool software, but it doesn't matter if group 14 is his or her current primary group.

The groups command lists the groups that a user belongs to. A user can have only one primary group at a time. However, a user can temporarily change the user's primary group (with the newgrp command) to any other group in which the user is a member.

When adding a user account, you must assign a primary group for a user or accept the default group, staff (group 10). The primary group should already exist (if it doesn't exist, specify the group by a GID number). User names are not added to primary groups. If they were, the list might become too long. Before you can assign users to a new secondary group, you must create the group and assign it a GID number.

Groups can be local to a system or can be managed through a name service. To simplify group administration, you should use a name service like NIS, which enables you to centrally manage group memberships.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP