maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to make a script running once a day (like a cron job)? (https://talk.maemo.org/showthread.php?t=35473)

jukey 2009-11-30 15:13

How to make a script running once a day (like a cron job)?
 
Hi,

I made a little rsync backup script which syncs the content of a folder on the n900 to a server. This works without a password using public key authentication via ssh.

My question now is: How can I make this little script running once a day? Or maybe once a hour? Is there a recommended solution for this?

Thanks, jukey

jaark 2009-11-30 15:16

Re: How to make a script running once a day (like a cron job)?
 
Isn't cron available on the device?

hopbeat 2009-11-30 15:20

Re: How to make a script running once a day (like a cron job)?
 
Take a look at this

Shanezlar 2009-11-30 15:23

Re: How to make a script running once a day (like a cron job)?
 
For your scenario, you might also want to take a look at Shepherd. But I think it's not quite ready yet.

jukey 2009-11-30 15:24

Re: How to make a script running once a day (like a cron job)?
 
Quote:

Originally Posted by hopbeat (Post 400748)
Take a look at this

I'm not really a developer but I'll see if I can get som information out of it.

Thank you!

@jaark: There is a folder /etc/cron.daily but I can't run the command: cron as user or as root.

CrashandDie 2009-12-01 01:15

Re: How to make a script running once a day (like a cron job)?
 
Quote:

Originally Posted by jukey (Post 400736)
Hi,

I made a little rsync backup script which syncs the content of a folder on the n900 to a server. This works without a password using public key authentication via ssh.

My question now is: How can I make this little script running once a day? Or maybe once a hour? Is there a recommended solution for this?

Thanks, jukey

Bit off-topic, but still.

You're using PKI auth without a password? Does the server check the validity of the certificate against a specific authority? If not, how will you be able to blacklist the certificate in case your device is stolen or lost?

ewan 2009-12-01 01:42

Re: How to make a script running once a day (like a cron job)?
 
Quote:

Originally Posted by CrashandDie (Post 401913)
Does the server check the validity of the certificate against a specific authority? If not, how will you be able to blacklist the certificate in case your device is stolen or lost?

That's not really how SSH keys work. It doesn't use CAs and automatically trust anything signed by them, a server will trust a list of particular individual keys. If the device holding the private key is compromised you simply remove that particular key from the authorized keys list.

CrashandDie 2009-12-01 01:47

Re: How to make a script running once a day (like a cron job)?
 
Quote:

Originally Posted by ewan (Post 401937)
That's not really how SSH keys work. It doesn't use CAs and automatically trust anything signed by them, a server will trust a list of particular individual keys. If the device holding the private key is compromised you simply remove that particular key from the authorized keys list.

I do realise that, but then you can really only use the key for one specific usage, as having to blacklist the key in several different servers is a security risk (simply put: you might forget one). On the other hand, if you use a different key for each usage, you are at risk of exposing a specific service, because that specific key wasn't blacklisted.

Hence my question, are there any server-side systems that allow to verify an SSH key against an authority (not specifically a CA, rather a key repo?)

SubCore 2009-12-01 13:50

Re: How to make a script running once a day (like a cron job)?
 
SSH supports Kerberos authentication, is this what you need?
http://docstore.mik.ua/orelly/networ...sh/ch11_04.htm


All times are GMT. The time now is 03:28.

vBulletin® Version 3.8.8