* Sun Sep 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-9.sme
- remove reference to deprecated rssh [SME: 12670] - template /etc/pam.d/sshd to remove motd [SME: 12740]
This commit is contained in:
15
root/etc/e-smith/db/accounts/migrate/50rsshRemoval
Normal file
15
root/etc/e-smith/db/accounts/migrate/50rsshRemoval
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
# Remove AllowRSSH propertie
|
||||
# Reset Shell property if /usr/bin/rssh
|
||||
|
||||
foreach my $account ($DB->get_all)
|
||||
{
|
||||
if (defined $account->prop('Shell') && ($account->prop('Shell') eq "/usr/bin/rssh") )
|
||||
{
|
||||
$account->delete_prop('Shell');
|
||||
}
|
||||
next unless (defined $account->prop('AllowRSSH'));
|
||||
$account->delete_prop('AllowRSSH');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user