Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th July 2006, 23:07
macaruchi macaruchi is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Samba as PDC using Ubuntu or Debian

Hi! I am using the article:
SAMBA (Domain Controller) Server For Small Workgroups With Ubuntu 5.10 "Breezy Badger"
and I did everything as cut adn paste but when I try the create the Tom' s account example I get this:

tdb_update_sam: Failing to store a SAM_ACCOUNT for [tom] without a primary group RID
Failed to add entry for user tom.
Failed to modify password entry for user tom

I read that this problem was caused for the name in smb.conf and hostname was different but If I did all steps like "cut and paste" I modiifed the hostname.

I ran the commando pdbedit -Lv and the domain that appear here is internet the old name of my server but tom user it is not here.The new name is SERVER1 like article.

What must change to can create my account and run my Samba PDC?

TIA

Edwin Quijada
Reply With Quote
Sponsored Links
  #2  
Old 25th July 2006, 11:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Please post the output of:

grep tom /etc/passwd
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th July 2006, 17:28
macaruchi macaruchi is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is

server1:~# grep tom /etc/passwd
tom:x:1002:100::/home/tom:
Reply With Quote
  #4  
Old 26th July 2006, 09:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Please post the result of:

pdbedit -Lv

and your smb.conf file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 26th July 2006, 15:40
macaruchi macaruchi is offline
Junior Member
 
Join Date: Jul 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default samba .conf

The pdbedit -Lv is in the attachment.
Here smb.conf



===================
smb.conf
===================

[global]
workgroup = USECADOMINIO
netbios name = SERVER1
server string = %h server (Samba, %v)

passdb backend = tdbsam
security = user
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
domain logons = yes
preferred master = yes
wins support = yes

# Set CUPS for printing
printcap name = CUPS
printing = CUPS

# Default logon
logon drive = H:
logon script = scripts/logon.bat
logon path = \\server1\profile\%U


# Useradd scripts
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
idmap uid = 15000-20000
idmap gid = 15000-20000


# sync smb passwords woth linux passwords
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
passwd chat debug = yes
unix password sync = yes

# set the loglevel
log level = 3


[homes]
comment = Home
valid users = %S
read only = no
browsable = no


[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
guest ok = yes
browsable = no


[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
admin users = Administrator
valid users = %U
read only = no


[profile]
comment = User profiles
path = /home/samba/profiles
valid users = %U administrator
create mode = 0600
directory mode = 0700
writable = yes
browsable = no

[Publico]
Comment=Publico para todos los usuarios
path=/home/samba/publico
valid users = @users
force group = users
create mask = 660
directory mask = 0771
writeable = yes
browseable = yes

I change the netbios name in smb.conf for INTERNET as say in a message but doesnt happen.

TIA
Attached Files
File Type: txt data2.txt (19.1 KB, 594 views)
Reply With Quote
  #6  
Old 1st August 2006, 12:47
Jupiter2 Jupiter2 is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default Etch too

Thanks for this thread, I was a bit hopeful and followed the Samba howto on a Debian Etch based distro, and ran into the same problem that Macaruchi hit
"tdb_update_sam: Failing to store a SAM_ACCOUNT for [tom] without a primary group RID
Failed to add entry for user tom.
Failed to modify password entry for user tom"

I assumed the problem arose because I was installing on etch, and was about to reinstall to a Sarge based installation. I am not sure if this helps.
cheers
JL
Reply With Quote
The Following User Says Thank You to Jupiter2 For This Useful Post:
Williamsl (23rd July 2014)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba domain controller - ubuntu eoij1 HOWTO-Related Questions 3 6th October 2006 14:35
Ubuntu - Samba Question linds HOWTO-Related Questions 4 7th March 2006 14:22
SAMBA (Domaincontroller) Server For Small Workgroups With Ubuntu 5.10 Dagur Server Operation 15 16th February 2006 03:56
Debian or Ubuntu for my server Hans Installation/Configuration 14 10th February 2006 10:28
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 02:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.