LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2007, 11:02 PM   #1
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Rep: Reputation: 15
samba error: failed to create user


Hi,

I have installed samba to authenticate windows user on linux. I'm able to get the net getlocalsid without errors. But when I tried to join server it says wrong username and password. I checked the logs and I found this line

[2007/11/05 11:29:31, 0] auth/auth_util.c:create_builtin_users(751)
create_builtin_users: Failed to create Users


Any idea how I would resolve this issue?

I've seen a lot of logs from other machines on /var/log/samba. All have the same errors.

Thanks in advanced..... my smb.conf file is:


[global]
# Set our domain name
workgroup = domain

# Lock out people not on the local LAN. Optional.
# Also allow local loopback (127.)
hosts allow = 192.168.1. 127.

# identify our software
server string = PDC Server

# Security mode should be "user" for a domain controller
security = user
# Security mode to tell samba as a domain member server.
# security = domain

# We must encrypt passwords to talk to modern versions of Windows.
# without registry hacks, and we want to do that anyway.
encrypt passwords = yes

# Set a reasonable minimum password length
# min passwd length = 3

# Crucial options to enable operation as a PDC
domain logons = yes
domain master = yes
preferred master = yes
wins support = yes

# Talk to LDAP via SSL to obtain account information
passdb backend = ldapsam:ldap://ldap01.domain.com/
# Sync our passwords with the ldap database
ldap passwd sync = yes

ldap ssl = no
ldap admin dn = cn=root,dc=ldap,dc=domain,dc=com
ldap suffix = dc=ldap,dc=domain,dc=com
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
ldap user suffix = ou=Users
ldap idmap suffix = ou=Users

# Scripts run to carry out domain administration tasks
add user script = /usr/local/sbin/smbldap-useradd -a -m '%u'
delete user script = /usr/local/sbin/smbldap-userdel '%u'
add group script = /usr/local/sbin/smbldap-groupadd -p '%g'
delete group script = /usr/local/sbin/smbldap-groupdel '%g'
add user to group script = /usr/local/sbin/smbldap-groupmod -m '%u' '%g'
delete user from group script = /usr/local/sbin/smbldap-groupmod -x '%u' '%g'
set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u'
add machine script = /usr/local/sbin/smbldap-useradd -w '%m'

# Log errors where CentOS normally does; one
# Log fiel per client IP address
log file = /var/log/samba/%m.log
 
Old 11-05-2007, 06:43 PM   #2
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Did you use the 'smbpasswd -a <username>' command to add users? Samba won't just be able to take a list of users and passwords from your shadow file, or whatever. You have to add them manually before they can log into your shares.
 
Old 11-06-2007, 12:17 AM   #3
guy_ripper
Member
 
Registered: Oct 2006
Posts: 80

Original Poster
Rep: Reputation: 15
@Vincent_Vega

Yes, I did... when I execute net join. It asked for a password. I entered my samba password and I got an error message saying "username and password are not correct. How would I check if root password was populated into samba database.

thanks....
 
Old 11-06-2007, 07:57 AM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
The command:
smbpasswd
when run as root will ask for the old password, followed by the new password. That's how I would check...

So, on the samba server you have added each user with that command, correct?

Last edited by Vincent_Vega; 11-06-2007 at 07:58 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Failed to find entry for user david_wliu Linux - Networking 9 12-14-2013 08:15 AM
Auto Create user home directory on Samba m2azer Linux - Networking 2 01-15-2007 11:56 AM
Samba - Authentication for user FAILED reeaver Linux - Software 0 09-03-2005 05:06 PM
create just a samba user thejackal13 Linux - Software 5 04-05-2005 09:13 PM
installing mandrake7.2 but failed to create at least one regular user kr4st Linux - Software 2 08-21-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration