Patrick Shanahan wrote:
* David C. Rankin <[EMAIL PROTECTED]> [01-25-08 15:59]:
When adding a group with Yast, the group is added with an 'x' for the
unset password:
ochiltree:x:1002:david
If the group is added with 'groupadd' an '!' is used for the password:
dcr:!:1051:david
Why? What is the difference?
a guess from scanning the man pages (which *are* available), groupadd
defaults to disabling the account. I said "a guess".
And, from where did you glean your guess old wise one??
groupadd(8)
NAME
groupadd - create a new group entry
SYNOPSIS
groupadd [-D binddn] [-P path] [-g gid [-o]] [-p password]
[-r] [--service service] [--help] [--usage] [-v] group
DESCRIPTION
groupadd creates a new group entry using the values specified
on the command line. Depending on the
command line options the new entry will be added to the system
files or LDAP database.
The group name must begin with an alphabetic character and the
rest of the string should be from the
POSIX portable character class ([A-Za-z_][A-Za-z0-9_-.]*).
OPTIONS
-g, --gid gid
Force the new group ID to be the given number. This
value must be positive and unique. The
default is to use the first free ID after the greatest
used one. The range from which the
group ID is choosen can be specified in /etc/login.defs.
-o, --non-unique
Allow duplicate (non-unique) group IDs.
-p, --password password
Encrypted password as returned by crypt(3) for the new
account. The default is to disable the
account.
-r, --system
Create a system group. A system group is an entry with an
GID between SYSTEM_GID_MIN and SYS-
TEM_GID_MAX as defined in /etc/login.defs, if no GID is
specified.
--service service
Add the group to a special directory. The default is
files, but ldap is also valid.
-D, --binddn binddn
Use the Distinguished Name binddn to bind to the LDAP
directory. The user will be prompted
for a password for simple authentication.
-P, --path path
The group file is located below the specified directory
path. groupadd will use this files,
not /etc/group.
--help Print a list of valid options with a short description.
--usage
Print a short list of valid options.
-v, --version
Print the version number and exit.
FILES
/etc/group - group account information
SEE ALSO
login.defs(5), group(5), groupdel(8), groupmod(8)
AUTHOR
Thorsten Kukuk <[EMAIL PROTECTED]>
pwdutils December 2003
groupadd(8)
GROUP(5)
NAME
group - user group file
DESCRIPTION
/etc/group is an ASCII file which defines the groups to which
users belong. There is one entry per
line, and each line has the format:
group_name:passwd:GID:user_list
The field descriptions are:
group_name
the name of the group.
password
the (encrypted) group password. If this field is empty,
no password is needed.
GID the numerical group ID.
user_list
all the group member's user names, separated by commas.
FILES
/etc/group
BUGS
As the 4.2BSD initgroups(3) man page says: No-one seems to keep
/etc/group up-to-date.
SEE ALSO
login(1), newgrp(1), passwd(5)
--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]