Hello,

does all user has writepermissions to there own profile? Does samba creates /export/smb/ntprofile/username ?
I had similar problems, so I wrote simple root-preexec-scripts to create the directorys.


[profiles]
comment = NT Roaming Profiles
path = /samba/profiles
root preexec = /etc/samba/scripts/mk_sambadir "/samba/profiles/%U" "%U" "%g"
profile acls = yes
browseable = yes
force user = %U
writeable = yes
create mask = 0600
directory mask = 0700
read only = no



# cat /etc/samba/scripts/mk_sambadir

#!/bin/bash
if [ ! -d "$1" ]
then
 mkdir "$1"
fi
 chmod 700 "$1" -R
 chown "$2" "$1" -R
 chgrp "$3" "$1" -R

matze

Vinh Tran schrieb:

I've just edited smb.conf to make it a PDC on my SuSE 9.1 machine. I can add other machines to the domain but when I try to log on, I get the message "Windows cannot locate your roaming profile...blah blah" My config file is below.

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SuSE
# Date: 2004-04-06
[global]
workgroup = TranFamily
os level = 64
passdb backend = smbpasswd
interfaces = 127.0.0.1 eth0
bind interfaces only = true
printing = cups
printcap name = cups
printer admin = @ntadmin, root, administrator
map to guest = Bad User
security = user
encrypt passwords = yes
server string = Samba
netbios name = dragonite
add machine script =
domain master = yes
domain logons = yes
local master = yes
preferred master = yes
logon path = \\%N\profiles\%u
logon drive = H:
logon home = \\homeserver\%u
logon script = logon.cmd
ldap suffix = dc=example,dc=com


[netlogon]
   path = /usr/local/samba/lib/netlogon
   read only = yes
   write list = ntadmin

[profiles]
   path = /export/smb/ntprofile
   read only = no
   create mask = 0600
   directory mask = 0700

The local log in and the domain log in usernames are different. I created the directory /export/smb/ntprofile as root but change mod to 777. Beside that, I haven't done much else. Can someone please help? Thank you.

-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba

Reply via email to