diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-10-06 15:17:11 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-10-06 15:17:11 +0200 |
commit | ff425d33a4a0daa387c4ac95bd442d5148429182 (patch) | |
tree | 8b897a94b175347cd141561863095e774c0cb884 | |
parent | 593938dba97e1b101bfb21d24f4028230d5a1cc8 (diff) |
Improve default user boilerplate.
-rwxr-xr-x | localnotifypwexp | 7 |
1 files 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. |