LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-12-2006, 05:09 AM   #1
jeb083079
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core, Red Hat
Posts: 18

Rep: Reputation: 0
error when trying to change samba password


i've got an error when i'm trying to change the samba password of root on our PDC server... here is the error:

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




the error i got when connecting from a windows 98 pc is :

The domain password you supplied is not correct; or access to your logon server has been denied.

But i alredy have typed the correct password for root and i also tried typing user i've created on the server... Can somebody help me with this? Thanks...
 
Old 08-14-2006, 01:57 AM   #2
centauricw
Member
 
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
The error appears to be Samba complaining that the NT domain groups are not properly set up. You may need to create the group mappings. I've got script that I use on my Samba servers. You will want to change Linux GID's used in the script to suit your system.

Code:
#!/bin/bash
#
# initgroups
# Script to initialize the Samba groups to UNIX/Linix groups.
#
# Written by Charles Rutledge
# Copyright (c) 2005 Centauri Computer Works, Inc.
#
# This program is licensed under the terms of the GNU General Public License,
# Version 2 (or at your option, any later version) as published by the Free
# Software Foundation, Inc., 59 Temple Place, Suite 220, Boston MA 0211, and
# available online at http://www.gnu.org/copyleft/gpl.html.
#
# THIS PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
# EXPRESSED OR IMPLIED.  YOU ASSUME ALL RISKS FOR THE USE OF THIS PROGRAM.

#
# Map Windows NT Domain Groups to UNIX/Linux groups.
#
[ `grep -c ^smbadmin /etc/group` -eq 1 ] || groupadd -g 96 smbadmin
net groupmap modify ntgroup="Domain Admins" unixgroup=smbadmin comment="Designated administrators of the domain"
net groupmap modify ntgroup="Domain Users" unixgroup=users comment="All domain users"
net groupmap modify ntgroup="Domain Guests" unixgroup=nobody comment="All domain guests"

#
# Map Windows NT Domain Groups to UNIX/Linux groups.
#
[ `grep -c ^smbadmin /etc/group` -eq 1 ] || groupadd -g 96 smbadmin
net groupmap modify ntgroup="Domain Admins" unixgroup=smbadmin comment="Designated administrators of the domain"
net groupmap modify ntgroup="Domain Users" unixgroup=users comment="All domain users"
net groupmap modify ntgroup="Domain Guests" unixgroup=nobody comment="All domain guests"

#
# Create a Unix group for Windows machine accounts.
#
[ `grep -c ^machine /etc/group` -eq 1 ] || groupadd -g 500 machine

#
# Map Windows NT machine local groups to UNIX/Linux groups.
#
[ `grep -c ^ntadmin /etc/group` -eq 1 ] || groupadd -g 544 ntadmin
net groupmap modify ntgroup="Administrators" unixgroup=ntadmin comment="Members can fully administer the computer/domain"
[ `grep -c ^ntusers /etc/group` -eq 1 ] || groupadd -g 545 ntusers
net groupmap modify ntgroup="Users" unixgroup=ntusers comment="Ordinary users"
[ `grep -c ^ntguest /etc/group` -eq 1 ] || groupadd -g 546 ntguest
net groupmap modify ntgroup="Guests" unixgroup=ntguest comment="Users granted guest access to the computer/domain"
[ `grep -c ^ntpwrusr /etc/group` -eq 1 ] || groupadd -g 547 ntpwrusr
net groupmap modify ntgroup="Power Users" unixgroup=ntpwrusr comment="Users granted most administrative on local computers with some restrictions"
[ `grep -c ^ntacctop /etc/group` -eq 1 ] || groupadd -g 548 ntacctop
net groupmap modify ntgroup="Account Operators" unixgroup=ntacctop comment="Members can administer domain user and group accounts"
[ `grep -c ^ntsysop /etc/group` -eq 1 ] || groupadd -g 549 ntsysop
net groupmap modify ntgroup="System Operators" unixgroup=ntsysop comment="Members can administer domain servers"
[ `grep -c ^ntprtop /etc/group` -eq 1 ] || groupadd -g 550 ntprtop
net groupmap modify ntgroup="Print Operators" unixgroup=ntprtop comment="Members can administer domain printers"
[ `grep -c ^ntbackup /etc/group` -eq 1 ] || groupadd -g 551 ntbackup
net groupmap modify ntgroup="Backup Operators" unixgroup=ntbackup comment="Members can bypass file security to back up files"
[ `grep -c ^ntrepl /etc/group` -eq 1 ] || groupadd -g 552 ntrepl
net groupmap modify ntgroup="Replicators" unixgroup=ntrepl comment="Supports file replication in a domain"
[ `grep -c ^ntrdp /etc/group` -eq 1 ] || groupadd -g 553 ntrdp
net groupmap add unixgroup=ntrdp ntgroup="Remote Desktop Users" type=domain comment="Members can access computers remotely via the Remote Desktop"
 
Old 08-14-2006, 09:33 PM   #3
jeb083079
LQ Newbie
 
Registered: Jul 2004
Distribution: Fedora Core, Red Hat
Posts: 18

Original Poster
Rep: Reputation: 0
ok... will try this at the office... thanks...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 password change jmarsh Linux - Networking 12 09-06-2011 03:57 AM
Change Samba password from Windows bsherwood Linux - Software 2 06-03-2005 08:28 AM
Change password from windows xp to samba fidelis Linux - Newbie 1 09-20-2004 08:54 AM
Just change Samba password, not Unix password? sorrodos Linux - Networking 1 08-14-2003 07:52 PM
Cannot change samba password from XP kragbax Linux - Networking 1 06-16-2003 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:28 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