[Samba] tdb_update_sam: Failing to store a SAM_ACCOUNT

RedNuX at gmx.at RedNuX at gmx.at
Sat Mar 27 21:03:50 GMT 2004


Nice Evening!

A friend of me has the following problem.  He is using (smbd Version
3.0.2a-Debian) I have in the bottom of this Mail his smb.conf.
Can someone help us?

[code]
# userdel -r fritz
# smbpasswd -x fritz
Failed to initialise SAM_ACCOUNT for user fritz.
Failed to modify password entry for user fritz

# useradd fritz -m -G users
# passwd fritz
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

# smbpasswd -a fritz
New SMB password:
Retype new SMB password:
tdb_update_sam: Failing to store a SAM_ACCOUNT for [fritz] without a primary
group RID
Failed to add entry for user fritz.
Failed to modify password entry for user fritz
[/code]

smb.conf
[code]
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not many any basic syntactic 
# errors. 
#

#======================= Global Settings =======================

[global]
        log file = /var/log/samba/log.%m
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
        obey pam restrictions = yes
        socket options = TCP_NODELAY
        write list = heinz
        force directory mode = 777
        force group = users
        encrypt passwords = true
        public = yes
        passdb backend = tdbsam guest
        passwd program = /usr/bin/passwd %u
        dns proxy = no
        netbios name = festplatte
        wide links = no
        server string = %h server (Samba %v)
        invalid users = root
        force create mode = 666
        workgroup = lan
        force user = nobody
        os level = 20
        security = share
        syslog = 0
        panic action = /usr/share/samba/panic-action %d
        max log size = 1000

[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
   writable = no

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want
to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# Un-comment the following and create the netlogon directory for Domain
Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#       cdrom share is accesed. For this to work /etc/fstab must contain
#       an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#       is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom


[anime]
        comment = Anime - nur Lesen
        path = /daten/anime/anime
        write list = heinz

[x_anime]
        comment = Austausch Anime
        writeable = yes
        create mode = 666
        path = /daten/anime/anime/austausch_anime
        directory mode = 777
[/code]

thanks for reading!

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz



More information about the samba mailing list