Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-07-2006, 07:54 AM   #1
LQ Newbie
Registered: Apr 2005
Distribution: Debian
Posts: 4
Blog Entries: 1

Rep: Reputation: 0
How to Send halt signal to XP SAMBA client


I am runnign samba as pdc (on a debian sarge server) and have 8 XP pro clients which connect to the server. So far everythibg going dandy, but my students cant be bothered with turning off the pc when they are finished.

I need a script to shut down all the XPs @ say 21h every day. I imagine it might be a bash script, which I can then automate with a cron job.

My problem is I dont know how to reach the XP clients. They all got machine SMB accounts and static IPs, but thats as much as I know. Do I send a SIGTERM -15 to a specific service or ????

See my smb.conf file below.
# Global parameters
        workgroup = PHONETIKLABOR
        server string = %h server (Samba %v)
        map to guest = Bad User
        obey pam restrictions = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        load printers = No
        add machine script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
        logon script = logon.bat
        logon drive = H:
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        ldap ssl = no
        panic action = /usr/share/samba/panic-action %d
        comment = All Printers
        path = /tmp
        admin users = root
        read only = No
        printable = Yes
        veto files = /*.eml/*.nws/riched20.dll/*.{*}/
        browseable = No

        comment =
        path = /home/netlogon
        write list = anais
        read only = Yes
        guest ok = Yes
        printable = No

        comment = home directories
        path =
        valid users = %S
        create mask = 0600
        directory mask = 0700
        printable = No
        browseable = Yes

        comment = Arbeitsdaten
        path = /projekt
        write list = @forscher
        force group = forscher
        read only = Yes
        create mask = 0660
        directory mask = 0770
        printable = No
        browseable = Yes

        comment = webserver document root
        path = /var/www
        write list = @forscher
        force group = forscher
        read only = Yes
        create mask = 0660
        directory mask = 0770
        printable = No
        browseable = Yes
Any tip and hint is highly appreciated.

Regards: SRDPTY
Old 06-07-2006, 09:04 AM   #2
LQ Newbie
Registered: Jun 2006
Location: Montreal
Distribution: Fedora Core 4
Posts: 16

Rep: Reputation: 0
what you could do is a .bat that you would schedule at whatever time you want on every machine to execute : shutdown -s -t 5 -m

i use this to shutdown any machines at work .. cuz im lazy and dont want to get up :P
shutdown -s -t 5 -m \\MachineName

but from Linux, not sure that would work since it's a dos command. ;/ so maybe setting up a schedule task with the .bat file would fix this annoying situation.



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 send user defined signal in linux feetyouwell Linux - Software 6 12-26-2007 04:40 AM
how to send a signal to a thread stephenwalter Programming 2 10-17-2005 01:07 AM
trying to send signal from linux module andreiij Programming 1 05-02-2005 12:46 PM
What is hup signal? How to send one to squid? Niceman2005 Linux - Newbie 2 12-17-2004 07:37 PM
Send signal to /dev/dsp marghorp Linux - Hardware 5 05-25-2004 03:17 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:05 AM.

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