Hi,
I am currently trying to remove redundant logins from the cron.allow file. At the moment I have a script that has produced a list of users by cross referencing the /etc/passwd file (Users still have logins) and the cron.allow file by using the diff command.
What I need to do now is with the file "cron_allow_to_be_removed.txt" to go through and where the name matches in the cron.allow file for the line(s) to be removed.
For example in the 'cron_allow_to_be_removed.txt' I have:
user1
user12
user23
user26
Thes users exist in the cron.allow file and thus need removing from that file.
Does anyone have any ideas?
Thanks in advance.
I am currently trying to remove redundant logins from the cron.allow file. At the moment I have a script that has produced a list of users by cross referencing the /etc/passwd file (Users still have logins) and the cron.allow file by using the diff command.
What I need to do now is with the file "cron_allow_to_be_removed.txt" to go through and where the name matches in the cron.allow file for the line(s) to be removed.
For example in the 'cron_allow_to_be_removed.txt' I have:
user1
user12
user23
user26
Thes users exist in the cron.allow file and thus need removing from that file.
Does anyone have any ideas?
Thanks in advance.