From 7bd42d6a73d2f21cffb9f0e3071e2527237c9e25 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 30 Jan 2004 03:58:23 +0000 Subject: [PATCH] add default freebsd and linux suspension/unsuspension commands, work around FreeBSD pw(1) lack of locking, and don't prepend "*SUSPENDED* " to suspend an account anymore --- FS/FS/part_export.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 1b46841ec..a27213773 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -576,13 +576,13 @@ tie my %shellcommands_options, 'Tie::IxHash', type =>'checkbox', }, 'suspend' => { label=>'Suspension command', - default=>'', + default=>'usermod -L $username', }, 'suspend_stdin' => { label=>'Suspension command STDIN', default=>'', }, 'unsuspend' => { label=>'Unsuspension command', - default=>'', + default=>'usermod -U $username', }, 'unsuspend_stdin' => { label=>'Unsuspension command STDIN', default=>'', @@ -927,7 +927,7 @@ tie my %forward_shellcommands_options, 'Tie::IxHash', 'desc' => 'Real-time export via remote SSH (i.e. useradd, userdel, etc.)', 'options' => \%shellcommands_options, 'nodomain' => 'Y', - 'notes' => 'Run remote commands via SSH. Usernames are considered unique (also see shellcommands_withdomain). You probably want this if the commands you are running will not accept a domain as a parameter. You will need to setup SSH for unattended operation.

Use these buttons for some useful presets:The following variables are available for interpolation (prefixed with new_ or old_ for replace operations): ', + 'notes' => 'Run remote commands via SSH. Usernames are considered unique (also see shellcommands_withdomain). You probably want this if the commands you are running will not accept a domain as a parameter. You will need to setup SSH for unattended operation.

Use these buttons for some useful presets:The following variables are available for interpolation (prefixed with new_ or old_ for replace operations): ', }, 'shellcommands_withdomain' => { -- 2.11.0