Kings Park
- Member since:
- April 20, 2012
- Total points:
- 105 (Level 1)
Can someone help me in writing a script for my System Administration class?
)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 mult- 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.
Sign in to Vote for the Best Answer
Answers (1)
-
Answerer 1
Do your homework. I know you go to UB ryt? lol.
For #2
Read:
http://ss64.com/bash/du.html
and
http://unixhelp.ed.ac.uk/CGI/man-cgi?mail
For #1
Read:
http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html
Source(s):
http://www.unixhelp.edu.ac.uk
http://www.ss64.com
http://www.cyberciti.biz/
None of these answers doing it for you?
Sometimes none of the answers get it just right. If so, pick "No Best Answer". Voters DO NOT get any points for voting on the No Best Answer.