'\" t .\" Title: chpasswd .\" 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 "CHPASSWD" "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" chpasswd \- wsadowa aktualizacja hase\(/l użytkownik\('ow .SH "SK\(/LADNIA" .HP \w'\fBchpasswd\fR\ 'u \fBchpasswd\fR [\fIopcje\fR] .SH "OPIS" .PP Polecenie \fBchpasswd\fR czyta pary danych (użytkownik i has\(/lo) ze standardowego wejścia\&. Odczytane informacje wykorzystywane są do aktualizacji danych o grupie istniejących użytkownik\('ow\&. Każdy wiersz przekazywanych danych ma postać: .PP \fInazwa_użytkownika\fR:\fIhas\(/lo\fR .SS "" .PP By default the supplied password must be in clear\-text, and is encrypted by \fBchpasswd\fR\&. Also the password age will be updated, if present\&. .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 \fBchpasswd\fR first update the password in memory, and then commit all the changes to disk if no errors occured for any users\&. .PP Polecenie to przeznaczone jest do użytku w dużych systemach, gdzie aktualizuje się wiele kont naraz\&. .SH "OPCJE" .PP Polecenie \fBchpasswd\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 \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/passwd .RS 4 Informacja o kontach użytkownik\('ow\&. .RE .PP /etc/shadow .RS 4 Informacje chronione o użytkownikach\&. .RE .PP /etc/login\&.defs .RS 4 Konfiguracja pakietu shadow\&. .RE .SH "ZOBACZ TAKŻE" .PP \fBpasswd\fR(1), \fBnewusers\fR(8), \fBlogin.defs\fR(5), \fBuseradd\fR(8)\&.