Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'at' authorisation 1

Status
Not open for further replies.

columb

IS-IT--Management
Feb 5, 2004
1,231
EU
I'm having problems with 'at' on AIX 5.1 ML9. I have made sure that there are neither /var/adm/cron/at.allow or /var/adm/cron/at.deny but whenever a non root user tries to use at they get the message
Code:
at: you are not authorized to use at.  Sorry.
I've tried creating an at.allow and that makes no difference and I've checked lsuser and the test user has daemon=yes set.

Any ideas anybody?

Ceci n'est pas une signature
Columb Healy
 
What if:

1) remove at.allow
2) create an empty at.deny
3) restart cron


HTH,

p5wizard
 
The manpage for at on my AIX 5200-09-03 system says:

A user cannot use the at command if one of the following is true:

o The at.allow file and the at.deny file do not exist (allows root user only).
o The at.allow file exists but the user's login name is not listed in it.
o The at.deny file exists and the user's login name is listed in it.

Have you tried using an empty at.deny file?
 
Ok, I've created an empty at.deny, restarted cron and that doesn't help. For completeness
Code:
root@hostname:/var/adm/cron#ls -l
total 173588
-rw-r-----   1 root     system            0 14 May 14:49 at.deny
-rw-r--r--   1 root     system           34 14 May 13:59 cron.allow
-rw-r-----   1 root     system            3 15 Jul 2003  cron.deny
prw-------   1 root     cron              0 14 May 14:21 FIFO
-rw-r--r--   1 root     cron       59876215 14 May 14:49 log
-rw-rw-r--   1 root     system     28994931 17 Mar 15:17 log1.gz
-rw-r--r--   1 root     system          899 15 Jul 2003  queuedefs

Ceci n'est pas une signature
Columb Healy
 
Cracked it (at last!)

For anyone who's interested the problem was permissions on /var/adm/cron which should be
Code:
ls -ld /var/adm/cron
dr-xr-x---   2 bin      cron            512 16 May 15:27 /var/adm/cron
Somehow it had become owned by root:system.

Ceci n'est pas une signature
Columb Healy
 
Columb, a star for posting the solution.

I want to be good, is that not enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top