Bash script - for rsync to backup file server running samba.

2012-01-06 Thread James Dugger
Does anyone know if a Linux server can identify windows users connected to the server through a Samba share, where Samba has not been configured as a domain controller (i.e. samba is resolving user accounts with smbpasswd only). Are the windows users always synced with a UNIX user? I am writing

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Lisa Kachold
Hi James; On Fri, Jan 6, 2012 at 1:11 AM, James Dugger james.dug...@gmail.com wrote: Does anyone know if a Linux server can identify windows users connected to the server through a Samba share, where Samba has not been configured as a domain controller (i.e. samba is resolving user accounts

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Kevin Fries
Just out of curiosity... Is there a specific use case you are using to explain why you are reinventing the wheel? http://backuppc.sourceforge.net/faq/BackupPC.html It would help to know exactly what you are trying to achieve that BackupPC can't handle so we can find you a better solution.

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Lisa Kachold
Hi Kevin: On Fri, Jan 6, 2012 at 8:26 AM, Kevin Fries ke...@fries-biro.com wrote: Just out of curiosity... Is there a specific use case you are using to explain why you are reinventing the wheel? Much of our discussion with scripting and systems use is like Hello World.

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Sean Roe
you could use smbstatus and grep out the users. Sean On Fri, Jan 6, 2012 at 1:11 AM, James Dugger james.dug...@gmail.com wrote: Does anyone know if a Linux server can identify windows users connected to the server through a Samba share, where Samba has not been configured as a domain

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Kevin Fries
On Fri, 2012-01-06 at 08:49 -0700, Lisa Kachold wrote: Hi Kevin: On Fri, Jan 6, 2012 at 8:26 AM, Kevin Fries ke...@fries-biro.com wrote: Just out of curiosity... Is there a specific use case you are using to explain why you are reinventing the wheel? Much of our

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread James Dugger
Lisa, Thanks for the code snippets and the direction. Kevin, I anticipated that I might get this response and I appreciate the recommendations. I will look into backupPC. There are some pretty narrow constraints that I am working with that have lead me to this direction. 1. This project is

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Eric Shubert
Hey James, I don't envy you on this one, but I think you're on a good track. Regarding the original question of how to tell if a particular PC is connected or not, can the router's DHCP server be configured to give out a fixed/static IP address according to the client's MAC address? Some

Re: Bash script - for rsync to backup file server running samba.

2012-01-06 Thread Ben Browning
5 people? Forget all this MAC nonsense, just write a script that tries to connect to the SMB name twice a day (mid morn and mid afternoon) and then mounts and backs up if it can. If it succeeds in the AM, skip the PM one for a given PC. If they can actually be trusted/convinced to do it, you can