Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-21-2005, 05:41 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Post Samba PDC and logon script

have a well working samba pcd
only the logon script is not working
can anybody help me


netbiosname = PDC
preserve case = yes
oplocks = yes
browseable = yes
printing = cups
writeable = no
# logon script = \\PDC\home\profiles\%U\%U.bat
default = netlogon
prefered domain = yes
workgroup = RPAG.LOCAL
debug level = 2
os level = 65
update encrypted = yes
security = ads
getwd cache = yes
short preserve case = yes
max log size = 5000
log file = /var/log/samba/log.%m
load printers = yes
read raw = yes
write raw = yes
socket options = TCP_NODELAY
default case = lower
logon drive = Y:
guest ok = no
fake oplocks = no
domain master = yes
encrypt passwords = yes
public = no
logon home = \\PDC\profiles\%U.pds
dead time = 15
password level = 4
case sensitive = no
domain admin users = root
mangle case = no
server string = Samba %v (PDC) @ RPAG.LOCAL
logon path = \\PDC\profiles\%U.pds
domain logons = yes
logon script = \\PDC\home\profiles\%U.bat

path = /home/%u
comment = Benutzer-Verzeichnisse
browseable = yes
writeable = yes

path = /home/netlogon
browseable = no
writeable = no
comment = NetLogON

path = /home/profiles
browseable = yes
writeable = yes
comment = Benutzerprofile

path = /home/public
browseable = yes
writeable = yes
guest ok = yes
public = yes
comment = Öffentlicher Ordner
Old 12-21-2005, 11:38 PM   #2
Registered: Dec 2005
Location: Lawrenceville GA
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216

Rep: Reputation: 31
The path of the logon script must be relative to the netlogon service. For example, if you set logon script = startup.bat, the Windows client with use the pathname \\LOGON_SERVER\netlogon\startup.bat. Your logon script doesn't work because you've tried to specify an absolute pathname. Also, the logon script must use DOS style CR/LF line ending, so if you've created it on the Linux box, you will need to send it through todos for the Windows boxes to use.

Hope this helps.
Old 12-22-2005, 07:10 AM   #3
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Originally Posted by fdobrovo
have a well working samba pcd
only the logon script is not working
can anybody help me


logon script = \\PDC\home\profiles\%U.bat
Instead of that use this line
logon script = %u.bat
& place all your scripts with pattern username.bat in /home/netlogon.

Thats it.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba as PDC: can it just run logon script, not host profiles? hamish Linux - Networking 0 09-09-2005 09:44 AM
xp pro can not logon samba PDC brianlee Linux - Networking 2 07-15-2005 02:53 AM
winxp can not logon to samba PDC brianlee Linux - Networking 5 07-13-2005 03:33 AM
Can't Logon to a samba PDC with Windows XP aussieskier Linux - Networking 5 06-15-2005 04:57 PM
Logon to Samba- PDC TY2K4 Linux - Networking 0 12-01-2003 12:51 PM

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration