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.
- Allow crontab access to
yousuf
user while denying access to thejerome
user on App Server 2.
- Log in to App Server 2
ssh your_username@app_server_2_ip
- Allow Crontab Access to User
yousuf
:echo "yousuf" | sudo tee -a /etc/cron.allow
- Deny Crontab Access to User
jerome
:echo "jerome" | sudo tee -a /etc/cron.deny
- Verify the Configuration:
cat /etc/cron.allow cat /etc/cron.deny
- Command Explanation:
ssh your_username@app_server_2_ip: Log in to App Server 2. echo "yousuf" | sudo tee -a /etc/cron.allow: Allow crontab access for `yousuf`. echo "jerome" | sudo tee -a /etc/cron.deny: Deny crontab access for `jerome`. cat /etc/cron.allow: Check if `yousuf` is listed in cron.allow. cat /etc/cron.deny: Check if `jerome` is listed in cron.deny.