LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-07-2006, 08:54 AM   #1
Serendipity0404
LQ Newbie
 
Registered: Apr 2005
Distribution: Debian
Posts: 4
Blog Entries: 1

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


Hello!

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.
Code:
# Global parameters
[global]
        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
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE
        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

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

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

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

[webserver]
        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, 10:04 AM   #2
EvilC0P
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.
 
  


Reply

Tags
samba


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


All times are GMT -5. The time now is 03:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration