When Linuxconf creates or deletes user accounts, it calls various scripts. You can override these scripts by entering the path to your own versions. You can also disable this process by erasing the path. Linuxconf provides default values for some of these scripts.
Linuxconf always calls the scripts with the same command line. It is built with the following arguments.
cd /
at
the beginning of your command is recommended.
This command (if non-empty) is used to delete the account data: the HOME directory and the mail inbox folder. When you delete an account, a pop-up dialog lets you pick the proper action: archive the data, delete or leave in place. A default delete command is supplied, but you can define a new one.
A default archiving command is supplied. It preserves the HOME
directory and the mail inbox folder in a compressed tar file. This
file is stored in /home/oldaccounts
. The name of the file has the
following format:
user-YYYY-MM-DD-PID.tar.gz
The PID is simply the process ID of the archive command. This is used to make the name completely unique.
Files archived in /home/oldaccounts
are left there forever. You
may want to clean out the old ones from time to time, according to the
administration policies applying to your organization.
You can use this field to specify your own archiving command.
Each time you create a user account, a command may be executed. You must specify here the absolute path of the command as well as any arguments.
Note that this command is called after the account has been created
and committed in the password database (/etc/passwd
). The
output and error codes of the command are logged in the
"Linuxconf logs."
You can specify a command which is executed before the account
is removed from the password database (/etc/passwd
).
Output and error codes are also logged. If any error is detected, the
user will be allowed to see the logs and will be asked if the accounts
should be deleted.
To help select a new password, an external utility may be used
to generate easy to use, yet secure, passwords. One such command
is apg
available at
http://www.adel.nursat.kz/apg/
A sample password generator, /usr/lib/linuxconf/lib/genpassword
is also supplied.
Enter the command for the end user dialog (changing his password).
The command is usually /usr/bin/apg
.
The end user is forced to use one of the generated password. He is not allowed to enter a new password manually.