From ff425d33a4a0daa387c4ac95bd442d5148429182 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 6 Oct 2011 15:17:11 +0200 Subject: Improve default user boilerplate. --- localnotifypwexp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/localnotifypwexp b/localnotifypwexp index 2ea686e..8722c17 100755 --- a/localnotifypwexp +++ b/localnotifypwexp @@ -28,6 +28,7 @@ admins="root postmaster" declare -r aged=21 # minimum days after expiration before admins are emailed, set to 0 for "always" hostname=$(hostname --fqdn) +domainname=$(hostname --domain) # /etc/shadow is system dependent shadowfile="/etc/shadow" @@ -78,9 +79,9 @@ oIFS=$IFS usersubjecttemplate='Your password is expiring soon' userbodytemplate='Your password on $hostname expires in $(($expdate - $today)) days. -Please contact the IT department by email at \"helpdesk\" or at -extension 555 if you have any questions. Help is also available at -http://helpdesk.example.com/password' +Please contact the $domain IT department by email or phone +if you have any questions. Help is also available at +http://support.$domain/password' adminsubjecttemplate='User Password Expired: $user@$hostname' adminbodytemplate='The password for user $user on $hostname expired $age days ago. -- cgit v1.2.3