Crontab & Permission denied

Crontab & Permission denied

Posted by: roboliver
Posted on: 2006-05-04 16:03:00

Hi

hopefully some one can help a me, I'm pretty well a newbie, I've just opened an account here and am having a problem creating a cron job. Before I post a support request thought i'd run it be here first in case I'm being a bit thick :-)

I created a file cronfile.txt and FTP'd into mydomain.com folder

I've logged in on my domain via ssh :-

ssh myusername@mydomain.com

entered my password, all good logged in

At the command line I entered :-

crontab cronfile.txt

but I get return :-

[popcorn]$ crontab cronfile.txt
crontabs/tmp.9gvxrb: Permission denied

If I crontab -l I get :-

crontabs/myusername: Permission denied

Am I missing something obvious, I'm a complete newbie but have followed wiki and other texts I thought the above should have worked or do I need to request crontabs from dreamhost?

Many thanks in advance

rob

Re: Crontab & Permission denied

Posted by: ardco
Posted on: 2006-05-04 17:16:00

In reply to:

I created a file cronfile.txt and FTP'd into mydomain.com folder
...
At the command line I entered :-

crontab cronfile.txt


You didn't say anything about first doing "cd mydomain.com"?

> crontabs/myusername: Permission denied

I get "no crontab for username" for a user without a crontab, so something doesn't seem right there.

Did you look in /etc to see if you find cron.allow or cron.deny? My server doesn't have either, which lets anybody use cron IIRC.

Good luck,

BobS

Re: Crontab & Permission denied

Posted by: roboliver
Posted on: 2006-05-04 17:23:00

Hi

thanks for the pointer. I'd tried it before, here what I tried again!

[popcorn]$ dir
Maildir id_rsa.pub logs mydomain.com
[popcorn]$ cd mydomain.com
[popcorn]$ dir
cronfile.txt
[popcorn]$ crontab cronfile.txt
crontabs/tmp.RfPPaQ: Permission denied
[popcorn]$

This is stumping me. I've read a few diffrent wiki pages and my account dir just dosnt add up to whats in the wiki.

Many thanks

rob

Re: Crontab & Permission denied

Posted by: ardco
Posted on: 2006-05-04 17:41:00

I suggest filing a Support request, for a probable server misconfiguration. This one looks like another candidate for the wiki FAQ, based on a search of the forum for crontabs/tmp and permission denied.

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_troubleshooting&Number=43836

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_troubleshooting&Number=39094

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_troubleshooting&Number=38737

But most definitive/authoritative is this response by Dallas, a honcho/founder of DH:

http://discussion.dreamhost.com/showflat.pl?Cat=&Board=forum_beginners&Number=30738

Good luck,

BobS

Re: Crontab & Permission denied

Posted by: roboliver
Posted on: 2006-05-04 18:00:00

Hi BobS

many thanks for taking the time to help, I've just posted a support request.

cheers

rob

Tags: crontab