LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2006, 10:14 AM   #1
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Issues with cron


Hi

Been a while since I last posted, but am in need of help.

Has anyone been able to get cron to burn a dvd at a specific time ??

Ive done as the man page says and suid the growisofs to root but this is still not helping me,

Ive tried various attempts at giving to many programs suid root and prob landed up compromising my machine but I still cannot get cron to automatically burn a dvd at a set time.

At the most I get the drive door to close, there is some activity and then nothing happens.

How do I grab the out put of cron to see what is going on
I have changed the log level in rc.M for crond to 1 and still there seems to be not very much logging going on.

mmm lost ...

Thanx
 
Old 07-20-2006, 10:39 AM   #2
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Could you post back a bit more of your approach to make this happen?

Assuming that you have written a shell-script to do some sort of backup, and then put that backup on a disc, does this script function by itself if run as the root user? If not, where does it fail?

I would be _very_ careful suid'ing programs to root that aren't meant for it - this is a potential huge security hazard...

-Y1
 
Old 07-20-2006, 03:50 PM   #3
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Original Poster
Rep: Reputation: 30
Hi Yalla-One

Thanx for your interest in this problem

Ok basically I have made a small file that is executable this file contains the following


#!/bin/bash
/usr/bin/growisofs -Z /dev/dvd -R -J /home/backup/*.tar.gz
eject /dev/dvd



then in cron.daily I have a script that runs the above ( or at least it is supposed to )

Under the man for growisofs there is a mention that growisofs will not run as root unless you set uid to roof for growisofs.

I know that i am opening potential doorways but i have been trying to get this to run automatically for a while now and Im lost at the moment.

I have put the eject command above the growisofs command and the drive door does open so i do know that something is happening just when it gets to the burning part nothing happens.

Do you perhaps have any other ideas of how i can do this?

Thanx
 
Old 07-20-2006, 10:15 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I do mine in 2 steps, ie make the ISO with mkisofs and burn it with growisofs. Here are the commands I use:
Code:
mkisofs -r -J -l -D -allow-leading-dots -o /tmp/backup.iso -graft-points /=/home/backup
growisofs -dvd-compat -speed=1 -Z /dev/dvd=/tmp/backup.iso
My growisofs isn't suid, the permissions are:
Code:
-rwxr-xr-x 1 root bin 78052 2006-02-20 10:01 /usr/bin/growisofs
The script containing that stuff runs out of cron on my setup with no problems, so I hope it's useful...
 
Old 07-21-2006, 02:00 AM   #5
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Original Poster
Rep: Reputation: 30
Thanx Gilead

I will give this a try
 
  


Reply


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
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 09:09 AM
cron issues kaplan71 Fedora 1 10-26-2005 08:40 AM
vixie-cron issues Bigun Linux - Software 1 12-17-2004 10:08 AM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 10:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration