PDA

View Full Version : Administrative Script



theRich
April 19th, 2012, 06:46 PM
I need help with an assignment for my System Administration. Need to write the following scripts

1)Inactive accounts on a network waste disk space and may become a security risk.
Write an administrative script (to be invoked by root or the cron daemon) that checks for and generates a list of user accounts that have not been accessed within the last 60 days.


2)Write a script for a multi-user system that checks users' disk usage. If a user surpasses the preset limit (100 MB, for example) in him/her /home/username directory, then the script will automatically send him/her a warning e-mail.
The script will use the du and mail commands.

sisco311
April 19th, 2012, 06:47 PM
Please don't create multiple threads on the same subject. Duplicate here:
http://ubuntuforums.org/showthread.php?t=1961587

Thread Closed.