Another Simple Scriptlet To Make The Unix And Linux CLI More User Friendly | Linux Today

Another Simple Scriptlet To Make The Unix And Linux CLI More User Friendly

Written By
Web Webster
Web Webster
Nov 24, 2008

[ Thanks to Mike
Golvach
for this link. ]

“Our little foray into variable interpolation today has
to do with making /etc/passwd just a bit more accessible. Most
folks are familiar with the 7 colon-separated fields of this file
(if not, they’re: The user’s Username, an encrypted password (or
usually an “x” if you’re using a shadow password system), the
user’s UID, the user’s GID, the user’s gecos information (Also
referred to as the “comment field,” usually either empty or
populated with a short description to make the account more easily
recognizable) , the user’s home directory and, finally, the user’s
default shell)

“Now, say what you will about the structure and setup of the
passwd file, but it’s fairly easy to follow. Almost everything in
it is the opposite of cryptic. The password field (field number 2)
is, of course, not going to be tailored for your ease of
understanding 😉 If you get really lucky and you hop on a machine
that actually lists the encrypted password in field two of
/etc/passwd, you can copy the file to any remote machine and go to
work on it. We’ve posted quite a few scripts to do automated
password cracking.”


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.