[SOLVED] Samba networking, want to be able to send a message to people who look at shares
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Samba networking, want to be able to send a message to people who look at shares
I've been trying to research unsuccessfully for a way to send a message to anyone who accesses my Linuxbox set up as a Samba sharing station. Basically i'm learning about linux ATM and i'm not that good. Enough to be dangerous some might say.
Anyway this is what I would like to do.
Right now I have one linuxbox setup as a samba workgroup (no domain just standard workgroup). I have about 7 people who use this glorified NAS system for things like stored video, pics, music, etc.
What I would like to do is whenever I update the various shares like I add another picture to the folder pics I want them to navigate to (in my case) \\192.168.1.17 and see not only the various shares but also a message that tells them whats been updated recently.
Maybe its a dream, but I thought with the knowledge out there its worth a shot.
Anyway I just want to say thanks for all the help this site especially has been to getting through a few headaches.
Do you know how to shell script. I would do ls -ltr pipe out what you want (most liky by date). Then paste that out to a text file of some sort. Being that this is a share you can't really send a message. That would require something like a logon so you can paste it to there MOTD or .bash_profile.
To be honest no I don't know how to shell script, i've dabbled with scripting in reference to Logon Scripts basically just editing what other people have to suit my needs. I figured that it wouldn't be possible, not required but would be nice and kinda cool...
I don't want to make a domain at my place, just for the sake of they take their computers out of home and unnecessary headaches are caused when really it can work just fine as a network.
An instant messaging server like jabber would work. To send the message when the clients are connected you would need to monitor smbstatus.
Obviously everyone would need to install a jabber client and be online to receive a broadcast message.
Ok I believe I'm trying to walk before I can crawl, I understand the ability of these clients to connect to multiple IM's all in the one program yet I fail to see how this would help me, couldn't I just use MSN and than IM people like that...
I found a way to provide the information but unfortunately not on access. Basically I set up a Ventrilo Server on the LinuxBox and the related clients log in and in the MOTD (Message of The Day) I can as the administrator change when I get new content to share.
So even though its not as I hoped it works ok. Plus you get the added feature of being able to chat with who is online both text based and through voip. Ventrilo is a great program.