Bad user root in crontab


 
Thread Tools Search this Thread
Operating Systems Solaris Bad user root in crontab
# 1  
Old 05-02-2012
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...
# 2  
Old 05-02-2012
check the /etc/shadow file if your acc is locked .
# 3  
Old 05-02-2012
thanks for your help,

I checked shadow file and user (root) is not locked...

what else can be?
# 4  
Old 05-02-2012
most likely this is due to expiry or locking of account. Check the bellow link and give a try .

CRON: bad user - Sun Solaris
This User Gave Thanks to amitranjansahu For This Post:
# 5  
Old 05-02-2012
still not working....
there is no warn for pass in shadow file.

Thanks anyway... but i ll be waiting for other advises...
I have been trying to solve this problem from like 5 days...
I guess there is a solaris/cron expert in somewhere here... Smilie
# 6  
Old 05-02-2012
Please post what exact Operating System and version you are running. Please make it clear whether crontabs other than root are affected too.
Please post:
Code:
ls -la /var/spool/cron/crontabs

Please post:
Three consecutive error entries from the cron log complete with timestamps.
Can you match these to actual crontab lines?

Please run:
Code:
# Password file checker program
pwck
# Group file checker program
grpck

Please check:
That root is the very first line in /etc/passwd and /etc/shadow .
(I've seen some very strange results when someone sorted the passwd file).

Please post the contents of:
Code:
/etc/default/cron


Last edited by methyl; 05-02-2012 at 01:57 PM..
# 7  
Old 05-03-2012
Operation system solaris(sunOS 5.10 Generic) And in cron log there is error (bad user root) only for root.

1. with ls -la /var/spool/cron/crontabs
Code:
root  sys         adm
root  root          lp
root  root          root
root   root       root.au
root   sys            sys
root   sys           uucp

comes.

2.there is no return for pwck and grpck commands

(I think it means passwords are ok or there is no inconsistencies.)

3. YES the root is the first line in passwd and shadow files
and
they are like below

Code:
passwd        root:x:::Super-user:/:/user/bin/bash

Code:
shadow        root:$md5$11111122223333444/:15443::::::


And "cronlog=YES" in /etc/default/cron


Thanks for help...

Last edited by Scrutinizer; 05-03-2012 at 04:34 AM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Crontab error - bad hour

Hi All, While setting the crontab i am getting the below error, "/tmp/crontab.XXXXwKymEc" 156L, 15621C written crontab: installing new crontab "/tmp/crontab.XXXXwKymEc":74: bad hour Please help. Thanks (2 Replies)
Discussion started by: nag_sathi
2 Replies

2. UNIX for Dummies Questions & Answers

Sudo to delegate permission from non-root user to another non-root user

I've been through many threads before i decide to create a separate thread. I can't really find the solution to my (simple) problem. Here's what I'm trying to achieve: As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user. The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies

3. Hardware

What are the possible action regarding having bad sector in my ext4 root partition?

Hi, I would like to ask about actions taken if any regarding having a few bad sector (67 bad sector according to DISK UTILITY) on my root ext partition except from buying a new HD and cloning it since my laptop is a 1 year old. Question: About clonzilla before this bad sector happens i used... (5 Replies)
Discussion started by: jao_madn
5 Replies

4. UNIX for Dummies Questions & Answers

Editing crontab of non-root user from file

Hi All, Ref: "build crontab from a text file" in same forum. (I am not allowed to post URL's in the first post) We are reorganizing our UNIX Crontab file by first making changes in a word pad text file. The intent is to then copy it back to Crontab. Will this work? Copy and Paste does not... (6 Replies)
Discussion started by: nivedhitha
6 Replies

5. 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

6. UNIX for Dummies Questions & Answers

Cannot run crontab :1: bad minute error

Hi can any one help me out. while running crontab , m getting error bad minute time.. how to resolve this error. i created 1 txt file a.cron mirrordir -vm \home\t \homet1 & i saved it. then i created a crontab file ..with crontab -e & i added a line in it. * 1 * * * \root\a.cron & i save... (2 Replies)
Discussion started by: unxdost114
2 Replies

7. UNIX for Dummies Questions & Answers

If user has own crontab, results in accumulation of root CRON processes

Hello, I seem to be having a problem with accumulation of root CRON jobs occuring when I have a user's cron job(s) running. Here is an example of a user's crontab file: */1 * * * * echo "hello" > /dev/nullps aux|grep CRON root 14333 0.0 0.0 91236 2172 ? S ... (12 Replies)
Discussion started by: Narnie
12 Replies

8. AIX

Crontab cannot run by non-root user

Good morning everybody. I have just receiedv a complaint from our DBA saying that if he create a scripts to run some Oracle performance scripts using crontab and the scheduling part is ok but the job is failed when I checked on /var/adm/cron/log. I have tried his scripts using Oracle id directly... (4 Replies)
Discussion started by: kwliew999
4 Replies

9. UNIX for Advanced & Expert Users

crontab : bad minute error

when i say $crontab z it says ==> "z":6: bad minute "z":6: bad minute errors in crontab file, can't install. any clue why its happening? (1 Reply)
Discussion started by: crackthehit007
1 Replies

10. UNIX for Dummies Questions & Answers

Possible to give non root user sudo to "crontab -l"

Does anyone know if this is possible? I want to give some users access to root's crontab but only with a read privilege. Is this possible to do or can only root or people with full root sudo view root's cron? (4 Replies)
Discussion started by: LordJezoX
4 Replies
Login or Register to Ask a Question