LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-16-2011, 11:45 AM   #1
dpoggi
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Rep: Reputation: Disabled
How to make Logon Script execute???


Hello againg users, I need your help here.
I just install Centos 5.6 and Samba 3.0.33 and My DC works fine without LDAP.
I'm having problems trying to read the Logon Script when I connect from a Windows Machine like XP and Win7. Yes users on Win7 I just made some changes in the register, in both clients, I can access to the domain, see my share directory and have access to it.
I have read lot of stuff on the internet about how to made the longon scrip work but with out any success.
Here's my smb.conf
Quote:
global]
workgroup = GAMMA
server string = Servidor de Datos %v
passdb backend = tdbsam
log level = 1
log file = /var/log/samba/%U.log
max log size = 1000
name resolve order = wins lmhosts host bcast
time server = Yes
logon script = %U.bat
logon path = \\%L\profiles\%U
logon drive = U:
logon home = \\%L\usuarios\%U
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
cups options = raw
hide unreadable = Yes

[homes]
comment = Home Directories
admin users = /home/samba/usuarios/%U
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
browseable = No

[profiles]
comment = User profiles share
path = /home/samba/profiles/
write list = @usuarios
read only = No
create mask = 0600
directory mask = 0700
browseable = No
csc policy = disable
My NetLogon and Profiles path has as Owner ROOT and Group ROOT, both has 0755 as privileges, the logon script (user.bat) whay kind of privileges has to have? owner? group?
Please, I will be greatfull if some can help me with this.
Best Regards
 
Old 09-16-2011, 01:18 PM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 294

Rep: Reputation: 54
I would confirm that when logged into a Window client, you can map a drive to your netlogon share and run that login script.
I would also check and see what the samba logs are telling me.
Have them set to log per client so you can isolate from a specific machine.
 
Old 09-16-2011, 02:19 PM   #3
dpoggi
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks for the reply zQUEz
I can map a drive to my netlogon share and also run the script manually.
About my logs.
Quote:
Log of Windows7 Machine
[2011/09/16 12:12:02, 1] smbd/service.c:make_connection_snum(1077)
gc101 (192.168.0.101) connect to service netlogon initially as user dpoggi (uid=501, gid=501) (pid 7890)
I canīt undestand why the script dosen't run.
 
  


Reply



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
Help? how to execute the /etc/profile without having the user exit then logon? icecoolcorey Programming 3 06-12-2008 09:48 AM
WinXP pro don't run "logon script = logon.bat" Bengt7jqb Linux - Server 2 04-13-2008 12:11 PM
execute a script upon logon Starch Linux - Newbie 3 05-12-2005 04:04 PM
Xp Home - how to make the logon sergiodemoura Linux - Networking 1 10-21-2003 07:55 AM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:16 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
Open Source Consulting | Domain Registration