Cron audit problem in Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris Cron audit problem in Solaris 8
# 1  
Old 09-26-2010
Cron audit problem in Solaris 8

cron audit problem. job failed
I’m getting problem with crontab in Solaris 8

Crontab stop and is not running for all the cron jobs

under cat /var/cron/log
> CMD: /var/sh/go.sh
> root 24835 c Sun Sep 26 08:06:00 2010
< root 24835 c Sun Sep 26 08:06:00 2010 rc=1
! cron audit problem. job failed (/var/sh/go.sh) for user root Sun Sep 26 08:07:00 2010


Pls your kind help in this issue ..

Last edited by Mr.AIX; 09-27-2010 at 03:52 AM..
# 2  
Old 09-26-2010
An email should have been sent to the user who executed the script.
However, from your logs it seems that there is a space after "/var" in the script path.
(/var<space>/sh/go.sh) which would be my guess at the issue
# 3  
Old 09-27-2010
Space is not the issue , space came when I copied it here!


I discovered it

I discovered the reason of cron audit problem. job failed


Reason is :

With auditing on there's an additional file /var/spool/cron/crontab/root.au that crond uses to set the audit flags. If you run the crontab command when you're logged into the system in a way that can't be properly audited, like via ssh, the values in root.au are set wrong and your cron jobs will fail.

To avoid the crontab interruption

Log into the console and run crontab -e then save it and all should work fine ..

Our main issue:

Our main issue why there is conflicting between crontab , auditing and ssh


I'm still investigating any one has idea in this regard , Pls advice …

.

Last edited by Mr.AIX; 09-29-2010 at 03:12 AM..
# 4  
Old 09-27-2010
I have come across this issue with Solaris auditing and crontabs before (there is actually a Sun bug opened for it, but I believe they never fixed it).

The latest openssh and Solaris sshd packages have a fix to add the correct auditing API calls to setup the audit session, so I would recommend updating your sshd to newer code (probably a good idea anyway for security reasons as the bug was reported 9 years ago!).

In the meantime, there is a workaround, which is detailed here:
ssh & crontab bug

I hope this helps.
# 5  
Old 09-29-2010
based on the below

------------------------------------
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).
From this link: ssh & crontab bug
------------------------------------

I have changed the UseLogin to yes under /etc/sshd_config and I stoped and re started the ssh deamon

Now I'm facing another issue I can not login to the server by ssh !

Any advice …
# 6  
Old 09-29-2010
Have you tried running your sshd with debug on and see what is displayed ? This may help with debugging the login issue.

Alternatively, Go to Sunfreeware - Free and Open Source Software (FOSS) for Sun Microsystem's Solaris click on your given architecture on the right light and download openssh and its dependant packages (openssl, zlib, libgcc) and install them. This will give you a bang up-to-date openssh, openssl (which again is good because of security issues) and will work fine with Solaris BSM.

Or, contact Sun support and ask them for the latest SUWssh - I believe they have made fixes in the past, which probably update the ssh code for your architecture.

I hope this helps.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Audit not working on Solaris 10

hi, I enabled bsm modules (/etc/security/bsmconv) and rebooted Solaris 10. But service is going into maintenance state. I rebooted server and I see one error saying "sys/c2audit:audit_kssl() not defined properly". I am not sure, what it is indicating and how it should be fixed. Please suggest, how... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. Solaris

Solaris 10 audit, need to catch redirections

Hello, I've installed solaris audit on a Solaris 10 SPARC system. Latest patch 143962-04 is installed. My problem is that while I can catch all arguments and processes created, I cannot catch a redirection. ie cat /tmp/test.txt > /tmp/test2.txtCatches the first part but not the redirection.... (5 Replies)
Discussion started by: gowron
5 Replies

3. Solaris

Enabling Solaris Audit log: Solaris 9

Dear All, I have one of my Servers, running Solaris 9. I wanna enable the Audit log enabling, the way I did in Solaris 10 Servers. After running, the bsmconv script, giving the reboots, modifying all the audit files in /etc/security, the audit is enabled, but the audit file which shall be... (3 Replies)
Discussion started by: sumeet1806
3 Replies

4. Solaris

Solaris 10 Services - Audit and Closure

Hello We have recently been through an audit of our solaris servers. All our solaris servers are running version 10. We have been told to close down all the services and we have closed what we could by using svcadm disable We only wish to let ssh and the ftp service to run. Below is a... (3 Replies)
Discussion started by: sollyshah
3 Replies

5. Solaris

Audit in Solaris Servers.

Hi Friends I am a Solaries newbie and I am looking out for a software or command or config that can capture all commands run by all users on a server on a daily basis. I believe that this Audit is being done in almost all enterprises and would like to know how the same is done there. Any... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

6. Solaris

Solaris 10.5 perl and cron job execution problem

Hi, I want to run a crontab job on solaris 10.5. I have configured the crontab accordingly 10 * * * * /scripts/dbalter.pl >> /scripts/cronout.txt However this does not work .Then I go to /var/mail/root and find an error in the output: From root@myserver Wed Feb 4 17:02:00 2009... (1 Reply)
Discussion started by: sonu2die4
1 Replies

7. Solaris

audit in solaris 10

can you please share what you use to audit what files are deleted, when files are deleted and who deleted them? thx (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

8. Solaris

audit in solaris

How do I know that audit is enabled in soalris. in AIX 'audit query' command gives me the info whether auditing is on or not. Raghav (1 Reply)
Discussion started by: raghavender_sri
1 Replies

9. Solaris

I need to audit users on a Solaris box

Is there a command to find out all the commands ran by a certain user id? TiA (5 Replies)
Discussion started by: PapaPark
5 Replies

10. Solaris

Sun Solaris Audit Program

Hi All, Any one has, sun solaris audit program which covers everything one need to check as a security auditor. Audit Program will help. Thanks, Ghanshyam Emails not allowed - see the Rules (4 Replies)
Discussion started by: ghanshyampatel
4 Replies
Login or Register to Ask a Question