#permissions
6 one-liners with this tag.
All one-liners tagged permissions
Find world-writable files and directories
$find /var/www/vhosts -xdev -perm -0002 ! -type l -ls 2>/dev/null
Fix file permissions and ownership with plesk repair
#plesk repair fs example.com -y
Fix permissions of .ssh and authorized_keys
$chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys
Fix the Git error dubious ownership on servers
$git config --global --add safe.directory /var/www/vhosts/example.com/httpdocs
Run WP-CLI as the Plesk subscription user instead of root
#runuser -u webuser -- wp plugin list --path=/var/www/vhosts/example.com/httpdocs
Show the privileges of a MySQL user
#mysql -e "SHOW GRANTS FOR 'dbuser'@'localhost';"