ssh & crontab bug


 
Thread Tools Search this Thread
Operating Systems Solaris ssh & crontab bug
# 1  
Old 04-14-2005
ssh & crontab bug

Does any one knows a work around for the crontab bug when connecting using ssh to a Solaris 8 system?

When you submit a crontab job through a ssh session, the job will not be executed, SunSolve has reported no fixing patches?
# 2  
Old 04-14-2005
One of the listed bugs shows a change to OpenSSH sshd config file - change UseLogin option from no to yes.

Another shows use telnet (yea, that's a nice secure option) or console to change crontabs instead of ssh.

Both are for system that use BSM - seems that along with ssh is where the problem is.
# 3  
Old 04-14-2005
Are you editing the crontab directly using vi (e.g vi /var/spool/cron/crontabs/root) ?

You should use

su -
[ enter passwd ]
crontab -e
[make your cron changes]
:wq!

Not using "crontab -e" will mean your cron daemon will not pick up any new jobs submitted ... if you vi your crontab manually, you will have to then refresh the cron daemon.
# 4  
Old 05-18-2005
ssh:UseLogin

Thanks for all those replied,
The case had been resolved by setting the (UseLogin) parameter in (/etc/sshd_config) to yes, then Re-Editing the Cron by (cron -e).
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Crontab 2>&1 not emailing

I have a script that emails me when I run it manually, but the crontab I'm using must be 'silencing' the output? Here's what I have: */15 * * * * /usr/src/blah.sh > /dev/null 2>&1 I don't want it to email me every time it runs, just when I run the sendmail command inside the script if the... (13 Replies)
Discussion started by: unclecameron
13 Replies

2. UNIX for Dummies Questions & Answers

Permission on crontab & mysql

HI, I am using centos 6 and finding difficultly in doing 2 below things. 1. i have a user praveen i want to allow him to create cron job of his own. so i have added his user id in cron.allow but still it is not allowing him to edit(even if i have created praveen from root user) or create his... (4 Replies)
Discussion started by: praveenkumar198
4 Replies

3. UNIX for Advanced & Expert Users

Strange bug crontab command line php / bcompiler

Hello everyone, I have a small problem that I'm stuck for several days and I do not go out. I tell you, I have a php script that I want to run crontab, it uses a compiled bcompiler file. In my php file if(file_exists("php/Alibrary.phb")){ include_once("php/Alibrary.phb"); What I do... (6 Replies)
Discussion started by: nicolas33770
6 Replies

4. Shell Programming and Scripting

ssh does not work in script while running crontab

Hi All, I have prepared a small script to monitor few applications running on diff unix boxes(frontend/backed node1/node2 etc). ssh does not work for node2 when script executed from crontab..:wall: it work fine when i run it manually. Regards, Pavan (4 Replies)
Discussion started by: pavanchouksey
4 Replies

5. Shell Programming and Scripting

remotely append crontab over ssh

Hi I would like to append/modify crontab remotely over ssh and this is what i have tried so far. text.txt contains the following line. 0,15,30,45 * * * * /home/local/hello.sh cat text.txt |ssh $host 'tee' but i dont know how to edit the crontab here after piping it to tee command. (2 Replies)
Discussion started by: xiamin
2 Replies

6. Linux

How to save crontab configuration when using SSH?

Hi, I'm trying to save a crontab configuration using SSH, acessing a Linux machine from a Windows desktop. So, in the prompt I type "crontab -e", to edit crontab, and a window is opened. But after writing the changes, I press Save button but it seems not working, because when... (1 Reply)
Discussion started by: Roger75
1 Replies

7. UNIX for Dummies Questions & Answers

What is the purpose of 2 >&1 in crontab?

while we editing the cron at the end of the cron what is the purpose of giving 2 >&1 (4 Replies)
Discussion started by: senmak
4 Replies

8. Fedora

Crontab & MAILTO

Hi there, I'm working with two servers, one with FEDORA 6 and the other one with FEDORA 7, and if I put these lines in crontab: MAILTO=MYADDRESS@mail.com */1 * * * * df -h everything works fine on FEDORA 7 , while it doesn't work on6?!?...and I find this message in the log file: MAIL... (2 Replies)
Discussion started by: Giordano Bruno
2 Replies

9. UNIX for Dummies Questions & Answers

crontab & var/spool/mai

Hi there, I'm using crontab to move some files every minute, but when crontab doesn't find these files it sends a message to the file "user_name" in the directory "var/spool/mail". Is it possible to "bypass" this problem? Thanks in advance, Giordano Bruno (1 Reply)
Discussion started by: Giordano Bruno
1 Replies
Login or Register to Ask a Question