Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 2nd October 2008, 06:15
skirao skirao is offline
Junior Member
Join Date: Aug 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down WinXP not loading Roaming Profiles from SAMBA server

Hi all,

I have configured Samba 3.0.28a on Ubuntu studio 8.04 - AMD64. It is configured as a PDC and the users get login to their respective home directories. But, the profile is not loading. So, if users make any changes to their desktop or my documents,they don't get loaded. The error is "windows didnot load your roaming profile and is attempting to log you on with your local profile.Changes to the profile will not be copied to the server when you logoff. Windows did not load your profile because a server copy of the profile folder already exists that does not have the correct security. Either the current user or the Administrator's group must be the owner of the folder." Contact your network administrator.

" Strangely, this used to work when i first created these user accounts.

Below is my smb.conf file

# Global parameters
workgroup = abcd
netbios name = server
;interfaces = eth1, lo
;bind interfaces only = Yes
passdb backend = tdbsam

hosts allow =
security = user
smb ports = 139
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'
include = /etc/samba/dc-common.conf

comment = Student common Share Directory
path = /export/
read only = No
writable = yes

Contents of /etc/samba/dc-common.conf

# Global parameters
;shutdown script = /var/lib/samba/scripts/shutdown.sh
;abort shutdown script = /sbin/shutdown -c

domain logons = Yes
preferred master = Yes
domain master = yes
wins support = Yes
os level = 65

;logon path = \\%L\profiles\%U
;logon drive = h:
;logon home = \\%L\%U
;logon script = logon.bat
include = /etc/samba/common.conf

comment = Home Directory
valid users = %S
read only = No
browseable = No
path = /home/%u

comment = Profile Share
path = /var/lib/samba/profiles
read only = No
;profile acls = Yes
writable = yes
browsable = no

Contents of common.conf


username map = /etc/samba/smbusers
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139
name resolve order = wins bcast hosts
time server = Yes
printcap name = CUPS
show add printer wizard = No
;shutdown script = /var/lib/samba/scripts/shutdown.sh
abort shutdown script = /sbin/shutdown -c
utmp = Yes
map acl inherit = Yes
printing = cups
#veto files = /*.eml/*.nws/*.{*}/
#veto oplock files = /*.doc/*.xls/*.mdb/
;include =
# Share and Service Definitions are common to all servers
;comment = SMB Print Spool
;path = /var/spool/samba
;guest ok = Yes
;printable = Yes
;use client driver = Yes
;default devmode = Yes
;browseable = No
;comment = Application Files
;path = /apps
;admin users = sambauser
;read only = No

The profiles directory is under /var/lib/samba/profiles

The permissions of the /var/lib/samba directory is
drwxr-xr-x 8 root root 4096 2008-10-01 16:21 samba

The Permissions of the /var/lib/samba/profiles directory:
drwxr-xr-x 30 root root 4096 2008-09-24 16:37 profiles

Under the profiles directories, user directories are created and they have username.users permission. For example..
drwxr-xr-x 13 priya users 4096 2008-10-01 12:31 priya

Sorry for the long post.
can someone help me with this
Reply With Quote
Sponsored Links
Old 2nd October 2008, 17:22
skirao skirao is offline
Junior Member
Join Date: Aug 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks for the information on windows, but i guess its not helping me.

Originally Posted by symonds View Post
Windows XP is a family of 32-bit and 64-bit operating systems produced by Microsoft for use on personal computers, including home and business desktops, notebook computers, and media centers.

Last edited by falko; 3rd October 2008 at 05:11. Reason: Removed spam links from the quote - please don't quote spammers.
Reply With Quote
Old 4th October 2008, 10:44
skirao skirao is offline
Junior Member
Join Date: Aug 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Guys,

I am using WinXP - SP2 and i downloaded samba doc, but where can i find it?
I figured out the problem. There was a mistake in the profiles path. After installing samba, i used the pdbedit command to set account policies on each user, and i guess by mistake the profiles path was entered wrongly. I changed the profiles path using pdbedit command and it worked. But, i had to do this manually for each user.

1) How can i use the pdbedit command to set account policies for all users at once? say for example i want to change the account password policy for 30 users at once?

The above scenario leads me to a question. The default profiles path in samba is in the users home directory /home/username/profile directory. But, i have a different path set for profiles in smb.conf file which is /var/lib/samba/profiles/username. Now which takes the precedence?

I tested this yesterday, i created a new samba user, using smbpasswd -a username command. at the end, in the username details, the profile path is automatically set to /home/username/profile directory. But, in my smb.conf file i have defined a profiles share which is under /var/lib/samba/profiles/username. Now, there is a conflict here?

comment = Profile Share
path = /var/lib/samba/profiles
read only = No
;profile acls = Yes
writable = yes
browsable = no
logon path = \\%L\profiles\%U
logon drive = p:

What is the use of using these parameters then? like logon path = \\%L\profiles\%U etc..??

Thanks for the support
Reply With Quote


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
Email Clients cannot send mail iverson0881 Installation/Configuration 3 8th May 2008 09:34
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 17:30
Public and private network + High Availability Apache Cluster teleted HOWTO-Related Questions 11 28th January 2008 15:29
samba server mstrap123 Server Operation 5 21st August 2007 17:46
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 03:30

All times are GMT +2. The time now is 02:14.

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