mirror of
https://github.com/unraid/webgui.git
synced 2026-01-14 13:39:58 -06:00
12 lines
351 B
PHP
Executable File
12 lines
351 B
PHP
Executable File
#!/usr/bin/php
|
|
<?php
|
|
// usage: ftpusers ['user1 user2 .. ']
|
|
// the list of users must be within quotes, ie, as one argument
|
|
// if no user(s) specified, deletes the config file
|
|
$config_file = "/boot/config/vsftpd.user_list";
|
|
if ($argc > 1)
|
|
file_put_contents($config_file, implode("\n", explode(' ', $argv[1]))."\n");
|
|
else
|
|
@unlink($config_file);
|
|
?>
|