LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-24-2009, 10:39 AM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 200

Rep: Reputation: 33
Not able to run cron job for non-privileged user in RHEL 5.3


Hi
I am not able to run cron job for non-privileged user in RHEL 5.3. and getting below errors.

Quote:

[root@localhost ~]# su - bladmin
-sh-3.2$ crontab -l
#CRON Usage
#----------
# minute 0 through 59
# hour 0 through 23
# day_of_month 1 through 31
# month 1 through 12
# weekday 0 through 6 for Sunday through Saturday
# command a shell command
#
#CRON Format:
#minute hour day_of_month month weekday command
* * * * * touch /tmp/abc.bladmin

tail -f /var/log/cron
Nov 24 09:20:01 localhost crond[16619]: CRON (bladmin) ERROR: failed to open PAM security session: Success
Nov 24 09:20:01 localhost crond[16619]: CRON (bladmin) ERROR: cannot set security context
No selinux installed in the system.

Any help would be greatly appreciated.
 
Old 11-24-2009, 11:03 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by mail4vijay View Post
Hi
I am not able to run cron job for non-privileged user in RHEL 5.3. and getting below errors.


No selinux installed in the system.

Any help would be greatly appreciated.
anything in /var/log/messages or /var/log/secure , /var/log/audit/audit.log
can you show us it is disabled?
 
Old 11-24-2009, 11:17 AM   #3
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 200

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by centosboy View Post
anything in /var/log/messages or /var/log/secure , /var/log/audit/audit.log
can you show us it is disabled?
Hey , thanks a lot i checked in /var/log/secure that bladmin user password was expired i re-set it and now it is working fine again..

Thanks a lot again for your help.
 
Old 11-24-2009, 11:18 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by mail4vijay View Post
Hey , thanks a lot i checked in /var/log/secure that bladmin user password was expired i re-set it and now it is working fine again..

Thanks a lot again for your help.
cool
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create user account with a 'newusers' run from a cron job? tifoso Linux - General 3 11-05-2009 07:19 AM
cron job as a non-privileged user do not run chakkerz Linux - General 5 06-03-2008 09:28 PM
Can't get a cron job to run derzok Linux - General 10 12-16-2007 05:00 AM
Did my Cron job run? ryedunn Linux - Newbie 2 02-25-2004 09:59 AM
Cron job does not run brentos Linux - General 6 12-12-2003 03:37 PM


All times are GMT -5. The time now is 03:47 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration