LinuxQuestions.org
Register a domain and help support LQ
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 12-04-2009, 02:57 AM   #16
ramakrishnankt
Member
 
Registered: Nov 2009
Location: India
Posts: 32

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by druuna View Post
Hi,

2 things:

1) You don't need to put the root user in the cron.allow file, root is all powerful. I initially thought you were talking about a normal user.

2) Another way of putting the username into /etc/cron.allow (as root):
echo "username" >> /etc/cron.allow

After that, just in case:
chmod 600 /etc/cron.allow

Hope this helps.
Hi, following is occurs
node2@node2-prudence:~$ echo "username" >> /etc/cron.allow
bash: /etc/cron.allow: Permission denied
node2@node2-prudence:~$ echo "node2" >> /etc/cron.allow
bash: /etc/cron.allow: Permission denied
node2@node2-prudence:~$ chmod 600 /etc/cron.allow
chmod: cannot access `/etc/cron.allow': No such file or directory


node2@node2-prudence:~$ sudo su
sudo: must be setuid root


Thanks

Last edited by ramakrishnankt; 12-04-2009 at 02:59 AM.
 
Old 12-04-2009, 03:44 AM   #17
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

As I stated before (post #8): it looks like something was not installed correctly (the setuid thingy). Maybe an Ubuntu user can help you with that one.

If you have the root password you can also do: su - (and type the root password).

You do need to have root access to create/change the /etc/cron.allow file, so the setuid problem needs to be fixed first (if the su - option is not possible).

Hope this helps.
 
Old 12-04-2009, 04:59 AM   #18
ramakrishnankt
Member
 
Registered: Nov 2009
Location: India
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks druuna
i want to do it in another system,
i have to set cron job for daily at specified time to execute automatically klinkstatus to checking a website's links
and mail its output in html format. how to do it..

Thanks again
Ramakrishnan
 
Old 12-04-2009, 07:52 AM   #19
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi again,

This thread shows you how to set up a cron job. Please use your other thread (klinkstatus problem) to solve that problem.
 
  


Reply

Tags
crontab


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
How to create user account with a 'newusers' run from a cron job? tifoso Linux - General 3 11-05-2009 06:19 AM
How to create a cron job to delete a folder's contents? s0n|k Linux - Newbie 1 10-05-2007 07:59 AM
how to run this cron job ashley75 Linux - General 5 05-24-2004 11:20 AM
Did my Cron job run? ryedunn Linux - Newbie 2 02-25-2004 08:59 AM
Cron job does not run brentos Linux - General 6 12-12-2003 02:37 PM


All times are GMT -5. The time now is 05:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration