手册页部分 1: 用户命令

退出打印视图

更新时间: 2014 年 7 月
 
 

groups(1B)

名称

groups - display a user's group memberships

用法概要

/usr/ucb/groups [user]...

描述

With no arguments, groups displays the groups to which you belong; else it displays the groups to which the user belongs. Each user belongs to a group specified in the password file /etc/passwd and possibly to other groups as specified in the file /etc/group . If you do not own a file but belong to the group which it is owned by then you are granted group access to the file.

文件

/etc/passwd

/etc/group

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
compatibility/ucb

另请参见

getgroups(2), attributes(5)

附注

This command is obsolete and will be removed in a future release of Oracle Solaris. See groups(1) for an alternate implementation of this command.