'\" t .\" Title: chgpasswd .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.75.1 .\" Date: 07/24/2009 .\" Manual: Polecenia Zarządzania Systemem .\" Source: Polecenia Zarządzania Systemem .\" Language: Polish .\" .TH "CHGPASSWD" "8" "07/24/2009" "Polecenia Zarządzania Systemem" "Polecenia Zarządzania Systemem" .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAZWA" chgpasswd \- wsadowa aktualizacja hase\(/l grup .SH "SK\(/LADNIA" .HP \w'\fBchgpasswd\fR\ 'u \fBchgpasswd\fR [\fIopcje\fR] .SH "OPIS" .PP Polecenie \fBchgpasswd\fR czyta pary danych (grupa i has\(/lo) ze standardowego wejścia\&. Odczytane informacje wykorzystywane są do aktualizacji danych o grupach istniejących użytkownik\('ow\&. Każdy wiersz przekazywanych danych ma postać: .PP \fInazwa_grupy\fR:\fIhas\(/lo\fR .PP By default the supplied password must be in clear\-text, and is encrypted by \fBchgpasswd\fR\&. .PP The default encryption algorithm can be defined for the system with the ENCRYPT_METHOD variable of /etc/login\&.defs, and can be overwiten with the \fB\-e\fR, \fB\-m\fR, or \fB\-c\fR options\&. .PP Polecenie to przeznaczone jest do użytku w dużych systemach, gdzie aktualizuje się wiele kont naraz\&. .SH "OPCJE" .PP Polecenie \fBchgpasswd\fR posiada następujące opcje: .PP \fB\-c\fR, \fB\-\-crypt\-method\fR .RS 4 Use the specified method to encrypt the passwords\&. .sp The available methods are DES, MD5, NONE, and SHA256 or SHA512 if your libc support these methods\&. .RE .PP \fB\-e\fR, \fB\-\-encrypted\fR .RS 4 Dostarczone na standardowe wejście has\(/la są traktowane jako już zakodowane\&. .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Wyświetlenie komunikatu pomocy i zakończenie dzia\(/lania\&. .RE .PP \fB\-m\fR, \fB\-\-md5\fR .RS 4 Jeżeli dpostarczane has\(/la są w postaci jawnej użyj kodowania MD5 zamiast domyślnego DES\&. .RE .PP \fB\-s\fR, \fB\-\-sha\-rounds\fR .RS 4 Use the specified number of rounds to encrypt the passwords\&. .sp The value 0 means that the system will choose the default number of rounds for the crypt method (5000)\&. .sp A minimal value of 1000 and a maximal value of 999,999,999 will be enforced\&. .sp You can only use this option with the SHA256 or SHA512 crypt method\&. .sp By default, the number of rounds is defined by the SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS variables in /etc/login\&.defs\&. .RE .SH "OSTRZEŻENIA" .PP Pamiętaj żeby zabezpieczyć przed odczytem plik przekazywany na standardowe wejście polecenia\&. .PP You should make sure the passwords and the encryption method respect the system\'s password policy\&. .SH "CONFIGURATION" .PP The following configuration variables in /etc/login\&.defs change the behavior of this tool: .PP \fBENCRYPT_METHOD\fR (string) .RS 4 This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\&. .sp It can take one of these values: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fIDES\fR (default) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fIMD5\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fISHA256\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fISHA512\fR .RE .RS 4 .sp Note: this parameter overrides the \fBMD5_CRYPT_ENAB\fR variable\&. .RE .PP \fBMAX_MEMBERS_PER_GROUP\fR (number) .RS 4 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in /etc/group (with the same name, same password, and same GID)\&. .sp The default value is 0, meaning that there are no limits in the number of members in a group\&. .sp This feature (split group) permits to limit the length of lines in the group file\&. This is useful to make sure that lines for NIS groups are not larger than 1024 characters\&. .sp If you need to enforce such limit, you can use 25\&. .sp Note: split groups may not be supported by all tools (even in the Shadow toolsuite)\&. You should not use this variable unless you really need it\&. .RE .PP \fBMD5_CRYPT_ENAB\fR (boolean) .RS 4 Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to \fIyes\fR, new passwords will be encrypted using the MD5\-based algorithm compatible with the one used by recent releases of FreeBSD\&. It supports passwords of unlimited length and longer salt strings\&. Set to \fIno\fR if you need to copy encrypted passwords to other systems which don\'t understand the new algorithm\&. Default is \fIno\fR\&. .sp This variable is superceded by the \fBENCRYPT_METHOD\fR variable or by any command line option used to configure the encryption algorithm\&. .sp This variable is deprecated\&. You should use \fBENCRYPT_METHOD\fR\&. .RE .PP \fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number) .RS 4 When \fBENCRYPT_METHOD\fR is set to \fISHA256\fR or \fISHA512\fR, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line)\&. .sp With a lot of rounds, it is more difficult to brute forcing the password\&. But note also that more CPU resources will be needed to authenticate users\&. .sp If not specified, the libc will choose the default number of rounds (5000)\&. .sp The values must be inside the 1000\-999999999 range\&. .sp If only one of the \fBSHA_CRYPT_MIN_ROUNDS\fR or \fBSHA_CRYPT_MAX_ROUNDS\fR values is set, then this value will be used\&. .sp If \fBSHA_CRYPT_MIN_ROUNDS\fR > \fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&. .RE .SH "PLIKI" .PP /etc/group .RS 4 Informacje o grupach użytkownik\('ow\&. .RE .PP /etc/gshadow .RS 4 Informacje chronione o grupach użytkownik\('ow\&. .RE .PP /etc/login\&.defs .RS 4 Konfiguracja pakietu shadow\&. .RE .SH "ZOBACZ TAKŻE" .PP \fBgpasswd\fR(1), \fBgroupadd\fR(8), \fBlogin.defs\fR(5)\&.