! bad user (adm).. in cron log


 
Thread Tools Search this Thread
Operating Systems Solaris ! bad user (adm).. in cron log
# 1  
Old 10-25-2011
! bad user (adm).. in cron log

I have noticed this error in /var/cron/log:

Code:
>  CMD: /usr/lib/acct/ckpacct
>  adm 6739 c Tue Oct 11 10:00:00 2011
<  adm 6739 c Tue Oct 11 10:00:00 2011 rc=1
! bad user (adm) Tue Oct 11 11:00:00 2011

but when I try to list crontab of user 'adm':

Code:
solarni/~# crontab -l adm
crontab: you are not authorized to use cron.  Sorry.

adm seems to be some kind of system user? why is it trying to use cron?
what to do?

thanks.


edit: it seems that ckpacct is used to control size of pacct log file. we have had a problem in past when that file completely filled the root filesystem, but it was solved by modifying /etc/logadm.conf . would it be then safe to remove ckpacct from crontab? if so, how to do it?

Last edited by orange47; 10-25-2011 at 04:41 AM..
# 2  
Old 10-25-2011
This error in cron log will come when a user ID is having password policy set on it and it tries to execute a scheduled script.

I have seen this in solaris 8.

I think you have collected a wrong output since the bad user comment is logged at 11 hrs whereas the adm 6739 job is at 10 hrs.

Regards,
Vishal
# 3  
Old 10-25-2011
yes, sorry:
Code:
! bad user (adm) Tue Oct 11 11:00:00 2011
>  CMD: /usr/lib/acct/ckpacct
>  adm 6741 c Tue Oct 11 11:00:00 2011
<  adm 6741 c Tue Oct 11 11:00:00 2011 rc=1

what do you mean by "having password policy set"?
I don't understand how could adm user have crontab if its "not authorized to use cron".
how to change its crontab?
# 4  
Old 10-25-2011
Check in /var/spool/cron/crontabs if there is a crontab file for user adm.

If adm is in cron.deny in /etc/cron.d then it will say "not authorized to use cron" but earlier it may be having cron access.

You can look into the /var/spool/cron/crontabs/adm file and I think the ckpacct is still there.

Regards,
Vishal
This User Gave Thanks to vishalaswani For This Post:
# 5  
Old 10-25-2011
yes, its there. along with runacct and monacct.
iirc, its not advisable to edit directly that file, so my only option is to allow-modify-deny?

edit: I found the cause: http://southbrain.com/south/2011/05/...nored-for.html
its 'locked password in /etc/shadow:'

Last edited by orange47; 10-25-2011 at 06:59 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem running zip from cron - bad zipfile offset

I've created a pretty straightforward shell script to do backups via rsync. Every night it rsyncs a copy of a website (approx 60GB) to the local machine. Once a week, after the rsync step, it zips the local copy of the whole site into 2GB chunks and places them in another folder. When running... (3 Replies)
Discussion started by: Agreppa
3 Replies

2. Solaris

Bad user root in crontab

Hi everyone, I got error which is "!bad user (root)" in crontab... I tried changing password, I checked etc/cron/cron.allow and cron.deny, And also I checked the permissions of my files, its(my crontab script) still not working.... Please help... (12 Replies)
Discussion started by: ijustneeda
12 Replies

3. Shell Programming and Scripting

Does running a cron job of a user require the user to be logged in?

Suppose user 'asdf' is not logged into server 'bbbb', but the server is up. User 'asdf' has cron job. Will it be executed? (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

4. Solaris

"! bad user (root)" in cron log

I am getting the following error in the cron log: ! bad user (root) Wed Sep 22 14:30:00 2010 < root 8989 c Wed Sep 22 14:30:00 2010 rc=1 What does this mean? (5 Replies)
Discussion started by: jastanle84
5 Replies

5. UNIX for Dummies Questions & Answers

/var/adm/messages records... [ID 702911 user.error] AEN event ...

Warning... I am a newb. :) I basically know how to add/rm users, kill pids and monitor diskspace. Not an idiot, but honestly a windows database person. I don't know much about what I am asking about. In the /var/adm/messages file, today this was added: Jan 24 09:16:51 my_server login: ... (3 Replies)
Discussion started by: madEG
3 Replies

6. Solaris

User entry in both cron.allow and cron.deny

Hello All, Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab??? Thanks in advance Vaisakh (5 Replies)
Discussion started by: ksvaisakh
5 Replies

7. Shell Programming and Scripting

Behavior of Bad Script in Cron Job

Hi A Ksh script is deployed in a server and executed through cronjob. If one of the line in the middle of the script fails . Are the remaining lines executed ? (3 Replies)
Discussion started by: Sivaswami
3 Replies

8. AIX

AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log

Hi, I can use 'crontabs –e' and do all the scheduling I like. However I would like to auto send myself just the cronjobs logs that fail. That is to say the PIDs that fail and the related lines with those PID’s only. (Not the full set of logs) Has anyone done this work? Or does an AIX 5.3 tool... (0 Replies)
Discussion started by: Keith Johnson
0 Replies

9. Solaris

[urgent help] error log on /var/adm/messages

hi experts, i'm having more error log on /var/adm/messages could anyone help to description what is this error logs means???? and how to fix it? below is the logs : Nov 22 20:03:40 USSDGtbs-1 unix: Nov 22 20:03:40 USSDGtbs-1 ^Mpanic/thread=3001345edc0: Nov 22 20:03:40 USSDGtbs-1 unix: ... (2 Replies)
Discussion started by: bucci
2 Replies

10. UNIX for Dummies Questions & Answers

var/adm/cron

Hi, Here im using WinSCP and looking into the remote dir var/adm/cron and I get the following error.Is this bcoz i dont have admin privileges: Cannot get real path for '/var/adm/cron'. Unexpected OK response. Error code: 0 Error message from server: Success Request code: 16 BTW im... (1 Reply)
Discussion started by: thumsup9
1 Replies
Login or Register to Ask a Question