LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-21-2005, 06:41 AM   #1
fdobrovo
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

smb.conf:

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

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

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

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

[public]
path = /home/public
browseable = yes
writeable = yes
guest ok = yes
public = yes
comment = Öffentlicher Ordner
 
Old 12-22-2005, 12:38 AM   #2
centauricw
Member
 
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, 08:10 AM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

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

smb.conf:

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

Thats it.

..amit..
 
  


Reply


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 10:44 AM
xp pro can not logon samba PDC brianlee Linux - Networking 2 07-15-2005 03:53 AM
winxp can not logon to samba PDC brianlee Linux - Networking 5 07-13-2005 04:33 AM
Can't Logon to a samba PDC with Windows XP aussieskier Linux - Networking 5 06-15-2005 05:57 PM
Logon to Samba- PDC TY2K4 Linux - Networking 0 12-01-2003 01:51 PM


All times are GMT -5. The time now is 09:01 PM.

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