Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NT_STATUS_LOGIN_FAILURE

Status
Not open for further replies.

raun

Technical User
Jan 12, 2004
2
US
I am using Samba verion 3.00143, the default installation on a server running RedHat Enterprise Linux AS. The installation is in a school with over 600 users entered in the /etc/passwd file.

I am using user level security with encrypted passwords but cannot successfully migrate the /etc/passwd users to the smbpasswd file when using the mksmbpasswd.sh script nor when I use the Webmin tool, "Convert Unix users to Samba users."

Both methods result in the same NT_STATUS_LOGIN_FAILURE response with I use the smblcient -L [servername] command.

mksmbpasswd.sh generates a smbpasswd file the XXXXX's in the LAN Manager and NT Password hashes.

Webmin's tool generates a smbpasswd file that looks appropriate but still doesn't work.

I realize that I should be using LDAP for authentication but I haven't learned it yet. I can manually populate the smbpasswd file and get Samba running very well but I don't have the time to enter over 600 users.

Any suggestions?

 
I found the answer to my own question in the online RedHat manual for RedHat 8. The mksmbpasswd.sh script does not copy user passwords to the new smbpasswd file. It just enters the username, UID and then padds the hash fields with XXXX's.

To set each Samba user's password you must run the "smbpasswd [username]" command for each user and enter a password manually. Hopefull, I can write or find a shell script to speed up that process.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top