Operation not permitted..

i my logs i get this error:
Feb 6 14:14:05 opensuse atd[18940]: PAM audit_log_acct_message() failed: Operation not permitted

its related to a script, with next contents:
#!/bin/bash

get/send news

/usr/sbin/fetchnews -w -vv

at -f ~luuk/bin/MyFetchnews2 “now +1 minutes”
<end-of-script>

The command fetchnews needs to be run with ‘root’ permissions (or ‘news’), so i choose to run my script under ‘root’.

Even when i do:
sudo -u news /usr/sbin/fetchnews -w -vv
the problem remains.

what is the cause, and how to solve the errors from ‘atd’ ??

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Break the problem down. If this happens outside of atd (‘Even when i
do:’…) then forget about atd for now. See if you can sudo to some other
account to run some other command. See if you can sudo to news and run
some other command. Perhaps try disabling AppArmor to see if that could
be trying to prevent something malicious. Which user are you running the
initial ‘at’ command as (to add it to that user’s queue)?

Good luck.

luuk-34 wrote:
> i my logs i get this error:
> Feb 6 14:14:05 opensuse atd[18940]: PAM audit_log_acct_message()
> failed: Operation not permitted
>
> its related to a script, with next contents:
> #!/bin/bash
>
> # get/send news
> /usr/sbin/fetchnews -w -vv
>
> at -f ~luuk/bin/MyFetchnews2 “now +1 minutes”
> <end-of-script>
>
> The command fetchnews needs to be run with ‘root’ permissions (or
> ‘news’), so i choose to run my script under ‘root’.
>
> Even when i do:
> sudo -u news /usr/sbin/fetchnews -w -vv
> the problem remains.
>
> what is the cause, and how to solve the errors from ‘atd’ ??
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJLbX5BAAoJEF+XTK08PnB5dj0P/jbn1LFfT2Wo0U8vfLGvWsd/
c27RsKHn0OdvfjmCqhiu4SSG5uO4f+2Upwfol8QeMymStLFuN0jKzuN3BOfFqV3K
YmixmPecA2hiXxvFqiD7HmJ5QAPlQBIiNcypd7A1kdd92oVByBL+4IXraJNl7CXL
SD91b3DXG2ajjE0TJC12zuxGM6h7xJ5VySZHs9AlgKN1RCZZeCrHmCc17cKFXPAX
TiGmMcKKMh0PB353wyADY1X5jytVrRyNdzPJ8kE+7P6uu/djk+aZr5e5Rgcj4ocM
LOHK9lJbi6htOFozowao50eht+6mt+vJsRv821bZzN4lgvghGlzTX3XxVJJ5LkAl
Z+9qgZ6o6x0WT8gpbd84kL65R/LfIhHfyTFNddSYFRb0Fh7SSjS2Or29FbHjVQ5i
4KJQ8mQsP1kAuioWktIiYZp7s1TQZ16F7zBMsnZaqWO4Y1y8XyNIPJSNI2ssoS3v
tzQDpMpmdVZJojpJ8qWDC2CSm81jKlc/ghbj/5QV3nhY/I2tmtBulJ8wMbYikVK8
p5z6oaZx/H3cq3DA8BHEYQIbyHJ/z6tPwjyapF1DeR93WZ31DV97QlXy0Lj/t4ma
rTvwxUq1aqF2/FVQ6QfqhBjXw6ksTM+wRbVQ1wgHckqmce6Bxq9fUNmMwNdz9a1N
eYvxmvyDZXidJ6s3oXnR
=wUCv
-----END PGP SIGNATURE-----

it only happend when i use atd

i’m starting my script (as root):

at -f script “now”

at the end of this script, the script will be scheduled again to be run in 5 mins.

Disableing ‘AppArmor’, made no difference