If you are already "su"ing to the users account, all you have to do is use
the following:
        crontab -e
This will bring up a vi session. Put a pound sign in the file just to
test. Write the file and do the following:
        crontab -l
This will cat your crontab. Now if you go into /var/spool/cron you'll see
the new file as the users name.

Cheers,
Doug

On Wed, 24 Mar 1999, Bob wrote:

> Hi,
>       I am not eactly shure what you mean. First off my file is
> /etc/crontab that is the one that runs the system. I need to set it up so
> that the user can edit his own file when he needs to change something.
>       I tried to copy the above file to /var/spool/cron/user I then
> chown users:user /var/spool/cron/user and then su into the user and tried
> to edit the file and it said permission denied.
>       I guess my question is where do I copy the file to and how do I
> make my system cron know the file is there and run what ever is needs to
> run in the users cron file?
> 
> Thanks
> Bob
> 
> 
> On Tue, 23 Mar 1999, Rick McKinney wrote:
> 
> > goto where the root cron file is copy that file to a username file
> > 
> > cp root userx
> > then edit the userx file as needed ....
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Bob
> > > Sent: Tuesday, March 23, 1999 7:23 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [expert] howto setup crontab for users
> > >
> > >
> > > Hi,
> > >   I have been reading the man pages and looking around the web but I
> > > still can not figure out how to do this exactly.
> > > I tired crontab -u users filename and tells me it does not exist.
> > >   Where do I create the crontab file for the user and how do I tell
> > > cron that the file is for that user? I read something about
> > > /var/spool/cron/user  but how do you create this to begin with?
> > >
> > > Any help on setting this up would be great. All by the way it is a trusted
> > > user I am trying to setup.
> > > Mandrake 5.3 linux kernel 2.2.3
> > >
> > > Thanks
> > > Bob
> > >
> > >
> > >
> > >
> > 
> 
> 

--
Douglas Rodgers                 Mercury Computer Systems, Inc.
UNIX Systems Administrator      Chelmsford, Massachusetts
[EMAIL PROTECTED]                  978-256-0052 x1446    

Reply via email to