|
From: William A. <waa...@re...> - 2006-01-24 23:06:59
|
Jamie Cameron wrote: > On Wed, 2006-01-25 at 09:21, William Arlofski wrote: > >>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. > > > That is extremely strange, Agreed... > and certainly doesn't happen on my system! > What operating system are you running Webmin on there? > > - Jamie The system is an older RedHat 6.2 system that has had Webmin as its interface for my clients since about December 2000. Never saw such a funky set of symptoms. As it stands, I can add a user by manually issuing the three commands: # useradd (with all appropriate parameters) # passwd to set the UNIX password # smbpasswd and re-typing their samba password twice. So I know the base command line tools are fully functional. Is there something I can set within webmin to have that module log some debugging information to help track this down? Obviously something is wrong but it is eluding me. Thanks for the quick response. -- Bill Arlofski Reverse Polarity waa...@re... |