LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-15-2005, 07:53 PM   #1
treedstang
Member
 
Registered: Jul 2003
Distribution: Suse 9.X Redhat 9.0, Enterprise 3 and 4 Fedora Mandrake
Posts: 79

Rep: Reputation: 15
Post REDHAT ES Server 4 --- Samba 3 PDC


I'm currently Redhat ES 4 Server with Samba version samba-3.0.10-1.4E as a PDC with the tdbsam backend

I'm having problems trying to join my Windows XP Pro workstations to the Domain. I thought I read somewhere that there is a issue using the the add machine script in the smb.conf that creates the machine account with a $ at the end of the of the machine account name.

I've even ran a test trying create the user account manually but I got the error below
The strange is it works fine in Suse 9.2 and Mandrake 10.1.. Any info on the items below would be deeply appreciated

[root@rhat4 samba]# useradd -s /bin/false/ -d /dev/null winxp2005$
useradd: invalid user name 'winxp2005$'


below is a copy of my smb.conf

[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = AGGEO
netbios name = RHAT4
# server string is the equivalent of the NT Description field
server string = File Print Server

# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes
; printing = cups

# This option tells cups that the data has already been rasterized
cups options = raw
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
max log size = 50

security = user
# Do not enable this option unless you have read those documents
# encrypt passwords = yes
# smb passwd file = /etc/samba/smbpasswd

passdb backend = tdbsam

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 /dev/null -g machines %u
# add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
# add machine script = /usr/sbin/useradd -d /dev/null -g machines -c 'Machine Account' -s /bin/false -M '%u'
add machine script = useradd -g machines -d /dev/null -s /bin/false %m

# Unix users can map to different SMB User names
username map = /etc/samba/smbusers

; include = /etc/samba/smb.conf.%m
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

local master = no

os level = 33
domain master = yes

preferred master = yes

domain logons = yes

# run a specific logon batch file per username
; logon script = %U.bat

logon script = logon.bat
logon drive = I:

# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes


# this has been changed in version 1.9.18 to no.
dns proxy = no
 
Old 03-30-2005, 11:59 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Take a look at this:
http://us4.samba.org/samba/docs/man/...html#id2538512
 
Old 12-16-2005, 11:29 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by treedstang
[root@rhat4 samba]# useradd -s /bin/false/ -d /dev/null winxp2005$
useradd: invalid user name 'winxp2005$'

useradd -s /bin/false/ -d /dev/null winxp2005

Later on in /etc/passwd & in /etc/shadow

add a "$" sign next to your user name in the first column manually.

Thats it. It will work.

..amit..
 
  


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 pdc, dhcp server opg31 Linux - Networking 3 09-29-2005 07:36 AM
RedHat 9 Samba PDC WinXP can't logon normmo Linux - Networking 1 12-18-2004 01:58 PM
how to setup a backup server for a samba PDC kenji1903 Linux - Networking 3 04-26-2004 11:54 PM
samba - linux server PDC or what? robyso Linux - Networking 3 06-13-2003 12:05 AM
Samba as a PDC or logon server (Need Help Pronto please) abe_asu Linux - Networking 1 08-22-2001 09:01 AM

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

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