LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-08-2003, 04:38 PM   #1
scooter549
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Rep: Reputation: 0
Help! Premature Logoff, Samba [netlogon]


I am currently using Samba as a PDC, and my logon scripts are generated by a bash shell script run with the root preexec parameter in the [netlogon] share. In this script (and in the postexec script) I use the sessreg command (part of the XFree86-4.2.1 package). This command allows me to see who is currently logged into the domain with the "who" command.

Works great except that users seem to be logging off the [netlogon] share just a few minutes after they logon and well before they logoff the domain. Thus I only see them with "who" for a few minutes instead of the entire time they are logged on to the domain as I intended.

Relevant excerpt from my smb.conf -

[netlogon]
path = /home/_shares/netlogon
browseable = no
read only = yes
root preexec = /home/_shares/execscripts/netlogon.sh %U %g %H %M %a %I %m %T
root postexec = /home/_shares/execscripts/netlogoff.sh %U %g %H %M %a %I %m %T

Relevant excerpt from my netlogon.sh script -

/usr/X11R6/bin/sessreg -a -l $7:smb -h $7:$6:$2 $1 2>&1 > /dev/null

Relevant excerpt from my netlogoff.sh script -

/usr/X11R6/bin/sessreg -d -l $7:smb -h $7:$6:$2 $1 2>&1 > /dev/null

Any ideas or helpful suggestions?
 
Old 09-09-2003, 01:42 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Run the comamnd in relation to a home drive or public share. Netlogon is only connected to at the time of login and is terminated after the login is completed.
 
Old 09-10-2003, 12:42 AM   #3
scooter549
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you David_Ross. Windows 98 works great with the command run as root preexec and root postexec in the home drive, but it still disconnects from Windows 2000 in 1,2, or 3 minutes.
 
Old 09-10-2003, 01:40 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I believe that there is some sort of bug in xp/2k that caueses the share to be mounted and unmounted numberous times. I'm not sure if there is a patch for it. Try making sure that the machine is fully patched up.
 
Old 09-10-2003, 08:49 PM   #5
scooter549
LQ Newbie
 
Registered: Sep 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I completely "patched" my Win2K OS and I still get the same result. Oh well. Perhaps I will have better luck as I start to play with v3 and TNG.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba & netlogon problem CarLost Linux - Networking 8 09-15-2005 04:28 AM
Samba Netlogon from win98-client lars12 Linux - Networking 0 07-21-2004 07:41 AM
Netlogon issues > Samba 3.02a w/ Win98 HiroMasaki Linux - Networking 17 05-15-2004 05:28 AM
Samba Netlogon - Driving me mad!!! ndprichardson Linux - Networking 12 10-25-2003 02:38 AM
My samba netlogon script doesn't execute colpaarm Linux - Software 1 07-25-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:24 AM.

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