I see various examples of how to add a user on Ubuntu server
I have Ubuntu 10.04.2 LTS
I was logged in as root and, when running adduser, my SSH command line asked me for both a 'new password' AND then a 'new UNIX password'.
I was not quite sure what the difference is and wondering why it ask for two types of password.
Why does the adduser command behave surprisingly and how do I go about investigating how and why it veers from the default Ubuntu behaviour?
--------
# adduser joe
Adding user `joe' ...
Adding new group `joe' (1007) ...
Adding new user `joe' (1003) with group `joe' ...
Creating home directory `/home/joe' ...
Copying files from `/etc/skel' ...
Enter new password:
Retype new password:
Enter new UNIX password:
------
Update: Since gaining a better understanding of the issue from feedback from mattdm and AlexD, I have modified this question from its original form which was: "What's the difference between 'new UNIX password' and 'new password' on linux, when adding new user?"
/etc/pam.d/passwd, and of any files that file includes. Thanks. – mattdm♦ May 20 '11 at 13:24passwdonto the net. What kind of things would you look for in there that will help answer the question? – JW01 May 20 '11 at 18:23passwdprogram itself. Unless you've done something very strange to it, it's unlikely to have any sensitive information. (It is not, itself, a password file.) – mattdm♦ May 20 '11 at 18:26/etc/pam.d/passwdfile in general, I'm still hesitant of making it public. Your feedback has helped me to realise that I was asking the wrong question, so I have modified it accordingly in the hope that I can learn about how to solve the issue in principal rather than just for this case. – JW01 May 20 '11 at 20:36