For some reason the crontab for mailman is gone. When I try run crontab for mailman on crontab.in there is no error but when I run 'crontab -l -u mailman' it says there is no crontab. Can someone tell me how to fix this? TIA.
On 3/22/22 11:47, Dennis Putnam wrote:
For some reason the crontab for mailman is gone. When I try run crontab for mailman on crontab.in there is no error but when I run 'crontab -l -u mailman' it says there is no crontab. Can someone tell me how to fix this? TIA.
Are you running crontab as the mailman user?
crontab -u mailman path/to/crontab.in
or
sudo -u mailman crontab path/to/crontab.in
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 3/22/22 12:00, Mark Sapiro wrote:
On 3/22/22 11:47, Dennis Putnam wrote:
For some reason the crontab for mailman is gone. When I try run crontab for mailman on crontab.in there is no error but when I run 'crontab -l -u mailman' it says there is no crontab. Can someone tell me how to fix this? TIA.
Are you running crontab as the mailman user?
crontab -u mailman path/to/crontab.in
or
sudo -u mailman crontab path/to/crontab.in
Also, if you ran this for another user, you clobbered that user's crontab and you need to remove the mailman crontab from that user and restore the original if any.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi Mark,
Doh, my bad. I have 2 sudo's installed and was using the wrong one. I have to use /bin/sudo to get the standard one. Thanks for jogging my memory.
On 3/22/2022 3:11 PM, Mark Sapiro wrote:
On 3/22/22 12:00, Mark Sapiro wrote:
On 3/22/22 11:47, Dennis Putnam wrote:
For some reason the crontab for mailman is gone. When I try run crontab for mailman on crontab.in there is no error but when I run 'crontab -l -u mailman' it says there is no crontab. Can someone tell me how to fix this? TIA.
Are you running crontab as the mailman user?
crontab -u mailman path/to/crontab.in
or
sudo -u mailman crontab path/to/crontab.in
Also, if you ran this for another user, you clobbered that user's crontab and you need to remove the mailman crontab from that user and restore the original if any.
Hi Mark,
What would cause the entire crontab to disappear? Would a system update that modifies cron do something with non-root crontabs? I guess that is a question for the CentOS folks.
On 3/22/2022 3:00 PM, Mark Sapiro wrote:
On 3/22/22 11:47, Dennis Putnam wrote:
For some reason the crontab for mailman is gone. When I try run crontab for mailman on crontab.in there is no error but when I run 'crontab -l -u mailman' it says there is no crontab. Can someone tell me how to fix this? TIA.
Are you running crontab as the mailman user?
crontab -u mailman path/to/crontab.in
or
sudo -u mailman crontab path/to/crontab.in
On 3/22/22 12:23, Dennis Putnam wrote:
Hi Mark,
What would cause the entire crontab to disappear? Would a system update that modifies cron do something with non-root crontabs? I guess that is a question for the CentOS folks.
A system update shouldn't affect user crontabs.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Dennis Putnam
-
Mark Sapiro