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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-08-2003, 04:38 PM
|
#1
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Rep:
|
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?
|
|
|
09-09-2003, 01:42 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
09-10-2003, 12:42 AM
|
#3
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
09-10-2003, 01:40 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
09-10-2003, 08:49 PM
|
#5
|
LQ Newbie
Registered: Sep 2003
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|