Task - Restrict Cron Access

Problem:

In alignment with security compliance standards, the Nautilus project team has opted to impose restrictions on crontab access. Specifically, only designated users will be permitted to create or update cron jobs.

Configure crontab access on App Server 3 as follows: Allow crontab access to mark user while denying access to the eric user.

Please ensure to review the task instructions carefully and modify the commands according to your specific server, username, and other relevant details.

Solution:

  1. ssh into App server3

  2. Verify if cron.allow and corn.deny under /etc/ are present, if not then create these 2 files. In my case, these files were not there. So, I had to create.

     sudo touch /etc/cron.allow
     sudo touch /etc/cron.deny
    
  3. Add mark user in cron.allow file, add Eric in cron.deny file.

     sudo echo "marc" >> /etc/cron.allow
     sudo echo "eric" >> /etc/cron.deny
    

    Note: 3rd step can be done using any file editor likeviornanotoo.

About me:

Hi, I am Sachin Khamitkar, a passionate devops engineer and an Expert Support Engineer. As a DevOps enthusiast and technology fan, I am passionate about automating workflows, optimizing infrastructure, and improving deployment processes. I love sharing insights on cloud strategies, containerization, and continuous delivery. With 6 years of experience in Technical and Application Support, I have a strong foundation in DevOps practices. I excel in root cause analysis, SLA adherence, and enhancing software stability. My skills include log analysis, SQL reporting, and CI/CD pipeline optimization. I have a proven track record in deploying builds, patches, and maintaining production environments. Additionally, I bring expertise in incident, problem, and change management following ITIL standards. If you're as excited about DevOps as I am, let's connect ๐ŸŒŸ me on LinkedIn๐Ÿ”—๐Ÿ’ผ, GitHub๐Ÿ’ป๐Ÿ”—, and Email๐Ÿ“ง for more tech tips, tutorials, and exciting projects! Let's innovate together and drive the future of DevOps! ๐Ÿš€๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ’ก

0
Subscribe to my newsletter

Read articles from Sachin Khamitkar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Sachin Khamitkar
Sachin Khamitkar

Hi there, I am a learner first and then an IT enthusiast. I have started exploring and ocean of DevOps Tools and tech.