| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/samba/ |
Upload File : |
#!/usr/bin/perl
# Delete a bunch of shares at once
require './samba-lib.pl';
&ReadParse();
&error_setup($text{'delete_err'});
@d = split(/\0/, $in{'d'});
@d || &error($text{'delete_enone'});
&lock_file($config{'smb_conf'});
foreach $d (@d) {
&error("$text{'eacl_np'} $text{'eacl_pds'}")
unless &can('rw', \%access, $d);
foreach $s (&list_shares()) {
&get_share($s);
if (&getval("copy") eq $d) {
&error(&text('error_delcopy', $s));
}
}
&delete_share($d);
&drop_samba_acl(\%access, $d);
}
&unlock_file($config{'smb_conf'});
&webmin_log("delete", "shares", scalar(@d));
&redirect("");