LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03: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, 04: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, 05: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, 06:15 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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, 10: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, 01: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


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


All times are GMT -5. The time now is 11:11 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration