LinuxQuestions.org
Review your favorite Linux distribution.
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 03-12-2006, 10:53 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
samba log off script ???


hi there,

Just a quick question for everyone,

I want to have a log off script, just a basic batch file that will run when
a user logs off, can someone tell me how to do that?

does samba have this ability?
 
Old 03-13-2006, 07:41 AM   #2
zidane_tribal
Member
 
Registered: Apr 2005
Location: chained to my console.
Distribution: LFS 6.1
Posts: 143

Rep: Reputation: 18
i think you need to give lots more information....

when a user logs off? how are they logging off? you mean logging out of a desktop environment like kde, or from a shell? you mention samba, perhaps you mean when a windows user logs off?

if your just looking for a basic shell script to run when someone logs out, then most (if not all) shells have this. your distro appears to be fc3, so you should be using bash as your shell, bash will execute .bash_logout when a login shell exits. its just a basic shell script and sounds like what you mean, but again, you need to give more information about what type of logout you want to control.
 
Old 03-13-2006, 03:29 PM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
your right i didn't give enough informatin, i'm talking about logging off an XP client in a samba PDC environment.
 
Old 03-13-2006, 04:13 PM   #4
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Yes, you can do this.

Make sure you've set it up properly, and you should be able to use "logon script = (value)" and "logoff script = (value)". I don't have my Samba 3 manual with me, but I'm 95% sure that's how it is done. [edit]I'd highly suggest a Samba manual if you're running Samba as a PDC. It can do many, many cool things and seems to integrate very well into an NT/2000 environment.

Last edited by ARC1450; 03-13-2006 at 04:16 PM.
 
  


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
How to create log file from script fotoguy Programming 12 03-27-2012 06:39 AM
Script to create a log file satimis Programming 15 01-16-2006 06:39 AM
log on (script?) problem gsabcuk General 2 06-10-2005 05:06 AM
init script won't run at log-off dimangi Linux - Newbie 1 10-29-2003 02:19 AM
log cleanup script teacup Programming 2 09-24-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 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