Vue normale

Il y a de nouveaux articles disponibles, cliquez pour rafraîchir la page.
À partir d’avant-hierdotmana

Edit Synology IP Block list through SSH | Tim's Blog

18 novembre 2021 à 07:01
SSH to your Synology Diskstation as “root”.
The “Autoblock list” is located at /etc/synoautoblock.db
This is a SQLLite database, so don’t try to edit it with VI.

sqlite3 synoautoblock.db
.header on
select * from AutoBlockIP;
sqlite> select * from AutoBlockIP;

IP RecordTime ExpireTime Deny IPStd
————– ———- ———- ———- —————————————
blocked IP xxx.xxx.xxx.xxx 0 1 0000:0000:0000:0000:0000:FGGG:C3A8:B415

delete from AutoBlockIP where IP = “xxx.xxx.xxx.xxx”;
.exit
(Permalink)

change plugin permissions

12 juin 2020 à 07:34
he minimum level required is usually hard-coaded into the plugin.

Open the main file of the plugin you want to change access rights for and search for ‘manage_options’. Chances are it will be in a function called either add_options_page(), add_submenu_page() or add_menu_page(). This basically means that the link to access the plugin will not be displayed to users who cannot ‘manage_options’.

To allow Editors to access the plugin, change all occurances of ‘manage_options’ to ‘edit_pages’.
To allow Authors to access the plugin, change to ‘publish_posts’.
To allow Contributors to access the plugin, change to ‘edit_posts’.
To allow Subscribers to access the plugin, change to ‘read’.

Note though, that any change will be wiped out when you update the plugin in the future.
(Permalink)
❌
❌