admin secretfile john secretfile sam secretfile
DBI:Pg:host=localhost;dbname=freeside dbusername dbpassword
radius.isp.tld radius_db radius_user passw0rd
". Note that to use ICRADIUS export you need to be using MySQL.
$ip
, $nasip
and $nasfqdn
, which are the IP address of the starting session, and the IP address and fully-qualified domain name of the NAS this session is on.
$ip
, $nasip
and $nasfqdn
, which are the IP address of the starting session, and the IP address and fully-qualified domain name of the NAS this session is on.
useradd -d $dir -m -s $shell -u $uid $username
is the default. If the file exists but is empty, cp -pr /etc/skel $dir; chown -R $uid.$gid $dir
is the default instead. Otherwise the contents of the file are treated as a double-quoted perl string, with the following variables available: $username
, $uid
, $gid
, $dir
, and $shell
.
userdel $username
is the default. If the file exists but is empty, rm -rf $dir
is the default instead. Otherwise the contents of the file are treated as a double-quoted perl string, with the following variables available: $username
and $dir
.
[ -d $old_dir ] && mv $old_dir $new_dir || ( chmod u+t $old_dir; mkdir $new_dir; cd $old_dir; find . -depth -print | cpio -pdm $new_dir; chmod u-t $new_dir; chown -R $uid.$gid $new_dir; rm -rf $old_dir )
is the default. Otherwise the contents of the file are treated as a double-quoted perl string, with the following variables available: $old_dir
, $new_dir
, $uid
and $gid
.