Книга: Fedora™ Unleashed, 2008 edition

Changing Passwords in a Batch

Changing Passwords in a Batch

On a large system, there might be times when a large number of users and their pass words need some attention. The super user can change passwords in a batch by using the chpasswd command, which accepts input as a name/password pair per line in the following form:

# chpasswd username:password

You can change passwords en masse by redirecting a list of name and password pairs to the command. An appropriate shell script can be constructed with the information gleaned from this chapter.

However, Fedora also provides the newusers command to add users in a batch from a text file. This command also allows a user to be added to a group, and a new directory can be added for the user, too.

Оглавление книги


Генерация: 1.331. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз