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 12th August 2008, 17:03
skirao skirao is offline
Junior Member
Join Date: Aug 2008
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem executing netlogon scripts in Samba

Hi all,

I am new here. I have configured Samba as a PDC on Ubuntu 8.04 AMD 64 with WinXP clients. The users are able to login without any problems. If i enable the [home] share, the users home directory is mapped as a separate network drive.

But, if i put the users home directory on a different folder other than /home. say for example /export and share this directory, this share appears in the network places in windows but not as a network/mapped drive. Also, i am struggling to make the netlogon work, so that users home directory is mapped when users login.

Is there anyway, i can redirect my documents folder in windows to be permanently mapped to a network drive?

Below is the config file!

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

hosts allow =
security = domain
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'

comment = User Home Dir
path = /export/U%
read only = No

domain logons = Yes
preferred master = Yes
domain master = yes
wins support = Yes
os level = 65
logon path = \\%N\profiles\%U
logon drive = h:
logon home = \\%N\%U

;comment = Home Directories
;valid users = %S
;read only = No
;browseable = No

comment = Network Logon Service
path = /var/lib/samba/netlogon
logon script = /var/lib/samba/netlogon/logon.bat
guest ok = Yes
locking = No
read only = no

comment = Profile Share
path = /var/lib/samba/profiles
read only = No
profile acls = Yes

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

Kindly Help
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
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
Samba Ldap Problem ZenMatrix Server Operation 1 10th August 2008 08:02
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 09:04
Problem with Samba PDC and Windows domain padmx82 Server Operation 0 28th March 2007 20:35
Problem Installing Courier (The Perfect Setup) regan Installation/Configuration 1 22nd April 2006 23:49

All times are GMT +2. The time now is 19:58.

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