|
From: William A. <waa...@re...> - 2006-01-24 22:22:14
|
A client of mine just reported a STRANGE problem when trying to create
new users in WebMins "Users and Groups" Module. I have spent the last
hour troubleshooting and verifying this. What follows is a description
of what is happening to the system files (/etc/passwd and /etc/shadow)
as well as the Samba user file (smbpasswd) when a new users is added and
later edited.
They are currently using Webmin 1.250
Create a new user with
id: first_last
User ID: choose text field and type 9999
select "normal password" radio button and type in "password" (no quotes)
choose primary group
Save
/etc/passwd now contains:
first_last:x:9999:6000:Test User:/home//students/first_last:/bin/false
(which is correct except for the TWO slashes between home and students)
the /etc/shadow file looks like:
first_last:$1$38139902$erEXj5Hm2wp4Dp4qUTzvO0:13172::::::
Which looks correct.
BUT, Samba's smbpasswd file contains:
first_last:9999:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-43D6A303:
it is not wrapped in the smbpasswd file. Notice there is no password so
he can not log in to the Samba Domain controller.
But wait... Maybe I didn't actually select the "Normal Password" radio
button when I entered him - even though I did. (This is where it gets
really strange)
Go back and edit the user:
switch the "Pre encrypted passwrod" radio button to "Normal Password"
and retyp his password.
Click SAVE...
NOW...
/etc/password contains:
first_lastfirst_last:x:9999:6000:Test
User:/home//students/first_lastfirst_last:/bin/false
(not wrapped of course)
/etc/shadow contains:
first_lastfirst_last:$1$38140733$C29l/0szvz337yXUOwMB3/:13172::::::
AND SMBPASSWD CONTAINS:
first_lastfirst_last:9999:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U
]:LCT-43D6A641:
HHHM! So I go re-edit the user and notice that his name appears twice
in the list of users and in the id field... so I strip off the 2nd
iteration of his name, set his password again and save:
NOW, /etc/passwd contains:
first_lastfirst_last first_last:x:9999:6000:Test
User:/home//students/first_lastfirst_last first_last:/bin/false
And so on... As it is, Webmin's "Users and Groups" module is no longer
funtional at my client's site. If there a fix, or if can I provide more
information to help solve thess issues please let me know.
Thanks.
--
Bill Arlofski
Reverse Polarity
waa...@re...
|