Cron Jobs without ssh access


#1

Can i create cron jobs for any user in my account without give them ssh access?


#2

https://panel.dreamhost.com/index.cgi?tree=goodies.cron&

https://panel.dreamhost.com/index.cgi?tree=goodies.cron&current_step=Index&next_step=ShowAdd

Creating New Cron Job:
User:
(shell users only!)


#3

I mean, i want to create a cron job with user that have ssh access for other user who don’t have ssh access in their domain or subdomain. Is there any way to do that?


#4

I’m at a loss to think of how to do this. The only thing I can think of is to create a user with shell access but just not give the real person the password. This would, of course, mean that they wouldn’t really have any other kind of access like ftp access either.

Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options


#5

You should be able to have your own user account have the actual cron job and let it access the files for the other user. All users from the same account have at least basic access to the files of other users.

–Matttail
art.googlies.net - personal website


#6

But since the cron job runs as the cron user wouldn’t any files it creates be created and owned by the cron user?

Free unique IP and $67 off with promo code [color=#CC0000]FLENSFREEIP67[/color] or use [color=#CC0000]FLENS97[/color] for $97 off. Click here for more options


#7

Yes, files created by that script would be owned by the user who ran the cron job - but by the same means that the cron user can access the files to begin with, the ‘other’ user should be able to access the new files.

–Matttail
art.googlies.net - personal website


#8

I do this action:
I gave ssh access to a user and remove the ssh access after cron job has been created with that user account.

I found that the cron job disapear after the ssh access remove from that user but the cron jobs doesn’t delete from system. I concluded it when i give back the ssh access to that user, the cron job suddenly appear again.

Is it indicate that a cron job has been created still running even the ssh access from that user has been remove?


#9

A cron job should still run even if the user does not have SSH access as long as the user was not actually removed. If the only problem is that the files are created with the wrong owner, would CHOWN solve it?


Read my blog. You know you want to…


#10

Sorry i don’t catch it clearly.
If I removed ssh access from a user, his cron job will be running with the same user who was removed or with other user?

or

If the cron job still running in condition that the ssh access of the user who own it has been removed, which user will run it?


#11

I suspect that just as you can authenticate and log in via ssh when shell access is disabled, the actual user is preserved. I think it another question of whether the cron job would actually run. It could just hang or error out because the system wouldn’t be able to create a shell process for the user.

In other words, I suspect that someone would need to do additional testing before I’d trust that this method would work.

Free unique IP and $67 off with promo code [color=#CC0000]LMIP67[/color] or use [color=#CC0000]LM97[/color] for $97 off. Click for more promo code discounts