script

Tracking of logins and logouts on Linux/Unix distros

In the .login file add the commands: —————————— echo login time `date` >> .daylogs/masterlog grep -i “sun” .daylogs/masterlog > .daylogs/sunday.log grep -i “mon” .daylogs/masterlog > .daylogs/monday.log grep -i “tue” .daylogs/masterlog > .daylogs/tuesday.log grep -i “wen”…


Changing Owners Regularly

If you’re an SA and need to change file ownership permissions on a regular basis, this script may help you. If you want to change the ownership of all the files owned by abc user to xyz…


File System Capacity Alert script

#!/bin/sh # This script can be used to # warn the users that # the file system is getting full # # Script needs adjusted for your # needs. Below is set to monitor #…


File System Capacity Alert script

#!/bin/sh # This script can be used to # warn the users that # the file system is getting full # # Script needs adjusted for your # needs. Below is set to monitor #…