I am completely new to Linux. While I was watching a tutorial video about Ubuntu, I came across the command passwd. When I tested, it shows;

(current) UNIX password: 
Enter new UNIX password:
Retype new UNIX password:

Why does it say UNIX password? Is there a relation to UNIX?

  • 1
    Quote from en.wikipedia.org/wiki/Linux "Linux (pronounced Listeni/ˈlɪnəks/ LIN-əks[9][10] or, less frequently, /ˈlaɪnəks/ LYN-əks[10][11]) is a Unix-like computer operating system ...." --- so it's fair that it ask for "UNIX password" :-) – 0x0C4 Nov 26 '16 at 7:02
  • Is the question about how UNIX relates to Linux, or about whether there may be a trademark issue? – jl6 Nov 26 '16 at 8:41
  • 7
    I consider Linux to be "a Unix" (belongs to the general Unix family in terms of design and behaviour). Some people call this "Unix-like" or "Unix clone". It is not, however UNIX® (certified by the Open Group as being SUS-compliant, and licensed to use the trademark). – marcelm Nov 26 '16 at 15:08
  • 3
    @marcelm Of course the lack of certification doesn't imply that Linux is missing any of the features needed to qualify for the trademark. At least to me Linux feels more feature-complete than some of the systems which do carry the UNIX trademark. Maybe you already agree with all of this. I can imagine the vendors of many Linux distributions actually consider Linux to be a stronger brand than UNIX, and that's why they don't care to get the certification. – kasperd Nov 26 '16 at 17:36
  • 1
    @jl6 The current wording may have existed for too many years for it to be considered a trademark violation if it was brought to court today. – kasperd Nov 26 '16 at 17:38

It says UNIX because you're changing the password for authentication provided by the pam_unix PAM module. Quoting the manpage:

   pam_unix - Module for traditional password authentication

   pam_unix.so [...]

   This is the standard Unix authentication module. It uses standard calls
   from the system's libraries to retrieve and set account information as
   well as authentication. Usually this is obtained from the /etc/passwd
   and the /etc/shadow file as well if shadow is enabled.

It is related to Unix in that it uses the traditional files /etc/passwd and /etc/shadow as the source of authentication.

If you used another PAM module, like pam_ldap for LDAP authentication, it would say LDAP instead of UNIX:

$ passwd
(current) LDAP Password: 
New password: 
Retype new password: 
passwd: password updated successfully
  • 4
    @user11153: No, the M in PAM stands for “Modules”, plural. There’s nothing wrong with saying “PAM module”. – Ry- Nov 28 '16 at 11:20
  • Could you clarify how to use another PAM module like in your example? A simple command is enough or does that require config files manipulations? – Marc Vanhoomissen Nov 30 '16 at 10:01
  • @MarcVanhoomissen there's a simple command, pam-auth-update, that will let you select PAM authentication modules, which does config file manipulation (edits /etc/pam.d/common-auth). Setting up an authentication module, though, is a bit more involved. You might find another answer of mine interesting: askubuntu.com/a/724796/158442 (you could extend it using appropriate options to pam_debug and different scripts to print whatever you want) – muru Nov 30 '16 at 10:30

Simple answer: because Linux is an operating system based on the design of (and offering the full functionality of) the Unix model.

As a result, many tools, commands, software, etc.

Like some versions of 'passwd' were either

  1. Ported directly from other Unix systems to Linux, or
  2. Designed to work with many Unix systems, including Linux.

Not the answer you're looking for? Browse other questions tagged or ask your own question.