View Single Post
  #1  
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:
Quote:
[global]
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

[homes]
comment = Home
valid users = %S
read only = no
browsable = no


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


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


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

[allusers]
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