> > 
> > 
> Oh - now I understand. You do this in the same way you create a new
> text file anyware on the system. The way I do it is:
> 
> Log in as my normal user.
> Create a new text file in a text editor. Usualy mcedit, but any text 
> editor will work.
> make the file executable, and make sure it runs. (find typing errors
> and stuff...)
> change to root
> copy the file to /etc/cron.daily
> back to normal user.
> 
> For example, I maight do this:
> 
> mcedit virus-scan.sh
> [enter script]
> chmod +x virus-scan.sh
> ./virus-scan.sh
> su
> chown root.root virus-scan.sh
> mv virus-scan.sh /etc/cron.daily
> exit
> 
> Now, not all scripts will run properly as a normal user, but you can 
> usualy do most of the testing that way. The only things you need to
> be root for are changing the owner of the file, and moving the file
> to /etc/cron.daily. The reasion you have to be root to put the file
> in /etc/cron.daily is that a normal user does not have write
> permission for the directory. This is a good thing, because the
> scripts in that directory are run as root.
> 
> Mikkel
> -- 
> 
>    Do not meddle in the affairs of dragons,
> for you are crunchy and taste good with Ketchup!
> 

Thanks - that's exactly the sort of information I need.  I'll print and
have a go at it.

Rosemary
-- 
 

Registered linux user # 386597

A friend may well be a masterpiece of nature.
Emerson

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to