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.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 7th March 2006, 20:23
noahlau noahlau is offline
Junior Member
Join Date: Mar 2006
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Roaming Profile Error with Samba Domain Controller Setup

I've most recently configured a Samba PDC with version 5.10. I followed each step. however, i got some problems

here is my smb.conf:
workgroup = MYWORKGROUP
netbios name = DEBIAN
server string = %h server (Samba, Ubuntu)

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

comment = Home
valid users = %S
read only = no
browsable = no

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

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

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

comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
1. I log on a win XP as a local admin then i upload a user's profile to /home/samba/profiles and rename the profile to "tom":

debian:/home/samba/profiles# ls -la
drwxrwx--x 13 root users 4096 2006-03-08 00:07 tom

I can successfully login from WinXP using the domain account "tom", but when I do, I get the following error, "Windows cannot locate the server copy of your roaming profile..."

2. i writed a logon script and i converted the file to the Windows format by using unix2dos, but the winxp workstation never execute it:

debian:/home/samba/netlogon/scripts# cat login.bat
net use P: \\DEBIAN\allusers

debian:/home/samba/netlogon/scripts# ls -al
total 12
drwxrwx--x 2 root users 4096 2006-03-08 00:36 .
drwxrwx--x 3 root users 4096 2006-03-08 00:36 ..
-rwxrwx--x 1 root users 30 2006-03-08 00:30 login.bat

Would you please kindly help ???

thank you so much !!!!
Reply With Quote
Sponsored Links


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
Roaming Profile Error with Samba Domain Controller Setup singe Installation/Configuration 1 14th April 2007 08:47
samba domain controller - ubuntu eoij1 HOWTO-Related Questions 3 6th October 2006 15:35
Samba as domain controller alex Suggest HOWTO 13 12th December 2005 15:00
samba perfect setup? anybody? einstein73 Installation/Configuration 2 11th December 2005 12:56
Attempting The Perfect Setup (To Some Extent) PsyVision HOWTO-Related Questions 3 3rd November 2005 12:50

All times are GMT +2. The time now is 08:45.

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