LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-28-2006, 06:22 AM   #1
itzamecwp
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
samba - add user script - User account does not exist


Hi,

Im battling with this one. Im running a Samba (3.0.22) PDC on Ubuntu 6.01. Rather than manually creating user and machine accounts, I want them simply created from a Windows XP/2000 PC as and when they are joined to the domain.

Using the XP PRO Network ID under system properties, I am able to get all the way through to where the users access level is set. On specifying this, I get the "The User account xxxx does not exist".

If I manually setup the user first all goes well and the user and machine login to the domain.

Strangley, the add machine script works and regardless as the the machine name, as long as the user exists, the machine is added automatically.

SMB.CONF

[global]
encrypt passwords = Yes
passdb expand explicit = no
log level = 2
admin users = root
unix charset = ISO8859-1
display charset = ISO8859-1
workgroup = SIGTEST
server string = %h server (Samba, Ubuntu)
interfaces = eth0, 100.100.100.0/24, 127.0.0.0/8
bind interfaces only = Yes
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = wins lmhosts hosts bcast
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
username map = /etc/samba/smbusers

add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null %u
add user script = /usr/sbin/useradd -s /bin/bash -m %u
# -m -g users -G users -s /bin/bash
add user to group script = /usr/sbin/usermod -G %g %u
add group script = /usr/sbin/groupadd %g

delete user from group script = /usr/sbin/groupmod -R %u %g
delete user script = /usr/sbin/userdel -r %u
delete group script = /usr/sbin/groupdel %g
set primary group script = /usr/sbin/usermod -g %g %u

logon script = %U.bat
logon path =
logon drive = H:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
local master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
panic action = /usr/share/samba/panic-action %d
idmap uid = 10000-20000
idmap gid = 10000-20000
template homedir = /home/%U
template shell = /bin/bash
create mask = 0600
directory mask = 0700
hosts allow = 100.100.100.0/24, 127.0.0.0/8
printing = cups
cups options = raw
print command =
lpq command = %p
lprm command =
hide special files = Yes
unix password sync = Yes
browseable = No

[netlogon]
path = /home/netlogon
root preexec = /home/netlogon/login.pl %U %L
browseable = No

[homes]
path = /home/%U
valid users = %S
read only = No
inherit permissions = Yes
inherit acls = Yes
inherit owner = Yes
browseable = No

[SHARED]
comment = Secure Shares
path = /SHARED
valid users = @users
read only = No
acl group control = Yes
create mask = 0664
directory mask = 0770
inherit permissions = Yes
inherit acls = Yes
inherit owner = Yes
browseable = Yes

[printers]
comment = Printer Queues
path = /tmp
create mask = 0700
printable = Yes
browseable = Yes

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

I would really appreciate some pointers here.

Craig.
 
Old 01-16-2007, 07:23 PM   #2
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
You will need to use pam_mkhomedir and add the user to the domain with user manager or whatever tool that you use. Only someone with administrator privileges can join a machine to a domain.
 
Old 01-18-2007, 11:52 PM   #3
itzamecwp
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks - I will take a look at that.
 
  


Reply

Tags
config, samba


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 add user script error hitotito Linux - Networking 1 04-22-2005 10:45 PM
What add user script you use for Samba 3.0.3-5? subaruwrx Linux - Networking 3 07-19-2004 12:19 PM
add my user account to the root group konabumm Linux - Newbie 2 08-01-2003 12:44 PM
Samba 2.2.7a fails to call add user script on Red Hat 9 DrFooMod2 Linux - Networking 4 07-17-2003 10:33 PM
Samba: how to create a logon script file when i add a system user. heero82 Linux - Software 2 06-19-2003 09:29 PM


All times are GMT -5. The time now is 01:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration