Automated User Management with Expect | Linux Today

Automated User Management with Expect

Written By
Web Webster
Web Webster
Sep 27, 2007

“At the large school in Mexico where I’m employed as a system
manager, I proposed (and got) a Linux server to replace an old
Windows 2000 file server and domain controller for the alumni. I
then was faced with the task of adding 3,000 users to this new
CentOS 5 server. I wasn’t about to add thousands of users and their
passwords one by one to the new Samba primary domain controller
(PDC) system. With a little help from OpenOffice.org Calc, a
utility called Expect, and shell scripts, I automated the
process.

“I previously set up Samba as the PDC, added groups, and
configured the firewall–all the basics–before I began the task of
adding users…”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.