Git Product home page Git Product logo

Comments (8)

konstruktoid avatar konstruktoid commented on June 1, 2024 1

I've added the same check for crontab, https://github.com/konstruktoid/ansible-role-hardening/pull/382/files

from ansible-role-hardening.

sgnsys3 avatar sgnsys3 commented on June 1, 2024 1

Hi I have tested this fix. It work well !
Thank you for your help !

from ansible-role-hardening.

konstruktoid avatar konstruktoid commented on June 1, 2024

Hi @sgnsys3 and thanks for reporting this.
I'll have a look as soon as possible.

from ansible-role-hardening.

konstruktoid avatar konstruktoid commented on June 1, 2024

Running the tests it seems that directory exists by default:

TASK [ansible-role-hardening : Set cron permissions] ***************************
changed: [bullseye] => (item=/etc/cron.d)
changed: [bookworm] => (item=/etc/cron.d)
changed: [testing] => (item=/etc/cron.d)
changed: [bullseye] => (item=/etc/cron.daily)
changed: [bookworm] => (item=/etc/cron.daily)
changed: [testing] => (item=/etc/cron.daily)
changed: [bullseye] => (item=/etc/cron.hourly)
changed: [bookworm] => (item=/etc/cron.hourly)
changed: [testing] => (item=/etc/cron.hourly)
changed: [bullseye] => (item=/etc/cron.weekly)
changed: [bookworm] => (item=/etc/cron.weekly)
changed: [bullseye] => (item=/etc/cron.monthly)
changed: [testing] => (item=/etc/cron.weekly)
changed: [bookworm] => (item=/etc/cron.monthly)
changed: [testing] => (item=/etc/cron.monthly)

but I'll write a PR that handles a missing cron folder.

from ansible-role-hardening.

konstruktoid avatar konstruktoid commented on June 1, 2024

could try with #382?

from ansible-role-hardening.

sgnsys3 avatar sgnsys3 commented on June 1, 2024

Hi, I have tried #382 The problem above was solved, and Found new error "/etc/crontab is absent. cannot continue"
The root cause is package cron was not installed on the OS.
In this case, Do we need to install cron prior to hardening or Check If cron is installed then hardening cron ?

from ansible-role-hardening.

konstruktoid avatar konstruktoid commented on June 1, 2024

Ah, yes. cron is assumed to be installed. I'll rewrite the task so it only runs if cron is installed

from ansible-role-hardening.

konstruktoid avatar konstruktoid commented on June 1, 2024

Closed by #382

from ansible-role-hardening.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.