Skip to search.
  1. Home >
  2. All Categories >
  3. Computers & Internet >
  4. Programming & Design >
  5. Undecided Question
Kings Park Kings Park
Member since:
April 20, 2012
Total points:
105 (Level 1)

Undecided Question

Show me another »

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

This question about "Can someone help me … " was originally asked on Yahoo! Answers United States

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.

Answers International

Yahoo! does not evaluate or guarantee the accuracy of any Yahoo! Answers content. Click here for the Full Disclaimer.

Help us improve Yahoo! Answers. Tell us what you think.