红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > SuSE

gpasswd命令问题

发布时间:2011-10-19 16:06:29来源:红联作者:linkway
之前一直使用的是ubuntu、FC和centos,现在开始用opensuse,发现opensuse下的gpasswd和其他linux下的用法不一样,这是什么情况?

opensuse:
-r Remove the password for this group
-l Locks the password entry for "group"
-u Try to unlock the password entry for "group"
--service srv Use nameservice 'srv'
-D binddn Use dn "binddn" to bind to the LDAP directory
-P path Search group file in "path"
--help Give this help list
--usage Give a short usage message
--version Print program version
--stdin Receive input from stdin instead of /dev/tty
Valid services for -r are: files, nis, nisplus, ldap

other linux:
Usage: gpasswd [option] GROUP

Options:
-a, --add USER add USER to GROUP
-d, --delete USER remove USER from GROUP
-r, --remove-password remove the GROUP's password
-R, --restrict restrict access to GROUP to its members
-M, --members USER,... set the list of members of GROUP
-A, --administrators ADMIN,...
set the list of administrators for GROUP
Except for the -A and -M options, the options cannot be combined.
文章评论

共有 0 条评论