LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2003, 02:48 PM   #1
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Rep: Reputation: 30
Red face Cron is not available as non-root


Please, help to make cron available for non-root users.
I want to back-up automatically weekly or so, but I get a message: Cron is not yet available as non-root.
How can I make it available for non-root?
 
Old 02-27-2003, 03:45 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Is there a particular reason you can't do your backup as root? I think that to backup any files owned by root you will have to be root when doing the backup.
 
Old 02-27-2003, 04:37 PM   #3
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Original Poster
Rep: Reputation: 30
I don't know. What's the common (safe) way of doing backup?
If its root in gui, ok, I'll do it as root in gui. If its more common to backup in user mode, I'd like to do it in user mode.
Please, advise.
 
Old 02-27-2003, 05:15 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Using root for the backups is probably the most common. Root can read any file regardless of permissions, and that means he can backup any user's files and system files in one script.

If you use a regular user to make backups, you can only backup files that users owns (or that belong to that user's group). On the plus side, you don't have to log in as root to restore your backups.

To answer your original question, there are two files (for the version of cron that I'm familiar with): cron.allow and cron.deny. I believe all you have to do is add the name the user into the appropriate file. I think cron defaults to "deny" if the user is not listed in either file.
 
Old 02-28-2003, 09:45 AM   #5
linuxfond
Member
 
Registered: Jan 2003
Location: Belgium
Distribution: Mandrake 9.2
Posts: 475

Original Poster
Rep: Reputation: 30
I see. Thanks.
 
Old 02-28-2003, 12:29 PM   #6
tpro
Member
 
Registered: Feb 2003
Location: Biggs, CA
Distribution: FreeBSD, Slackware
Posts: 36

Rep: Reputation: 15
although it sounds like you were talked out of doing what you wanted to do, here is how to edit per user cron entries should the need ever arise for something else:

crontab -e

Not sure what distros install it and at what software selection it is included. I just went to my x86 linux box and it was not present but it is on my FreeBSD box. I've also encountered it on just about any commercial UNIX I've managed.

tpro
 
  


Reply



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
tripwire modifies /root when run from cron phil.d.g Linux - Security 3 05-17-2005 11:27 PM
Can't run cron jobs as user, only root Kropotkin Linux - Newbie 5 11-10-2004 09:30 AM
root cron permissions question bjdea1 Linux - General 6 07-10-2004 12:39 PM
Failed to lock file /var/spool/cron/root after 5 minutes teeno Linux - Software 0 09-24-2003 02:49 AM
Cron sending mail to root bspicer Linux - General 2 05-01-2002 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:00 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