MySecureShell is a solution which has been made to bring more features to sftp/scp protocol given by OpenSSH. By default, OpenSSH brings a lot of liberty to connected users which imply to trust in your users. The goal of MySecureShell is to offer the power and security of OpenSSH, with enhanced features (like ACL) to restrict connected users.
Monthly Archives: February 2022
wget ERROR: The certificate of ‘repo.zabbix.com’ is not trusted
vim /etc/ca-certificates.conf
comment line mozilla/DST_Root_CA_X3.crt
update-ca-certificates -f -v
Clearing symlinks in /etc/ssl/certs…
done.
Updating certificates in /etc/ssl/certs…
Doing .
150 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…
done.
This will update update /etc/ssl/certs on Debian 9
pure-pw useradd xargs pass password
( echo ${password} ; echo ${password} ) | pure-pw useradd ftp_user -
u ftpuser -g ftpgroup -d /www/dir/ > /dev/
null 2>&1
postgresql vacumm disk space
Run vacuumdb without increasing disk space:
service postgresql stop
mv /var/lib/postgresql/9.5/main /mnt/new_disk
ln -s /mnt/new-disk/main /var/lib/postgresql/9.5
chown postgres:postgres /mnt/new-disk
service postgresql start
vacuumdb –all –full
service postgresql stop
rm /var/lib/postgresql/9.5/main
mv /mnt/new_disk/main /var/lib/postgresql/9.5
service postgresql start
mongo db.adminCommand drop database
mongo db_name --eval "printjson(db.dropDatabase())"
/snap/sentry/usr/lib/python2.7/multiprocessing/synchronize.py”, line 75, in __init__ sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue) OSError: [Errno 13] Permission denied
vim /var/lib/snapd/apparmor/profiles/snap.sentry.sentry
add: /dev/shm/* mrwlkix,
apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.sentry.sentry
sentry cleanup --days 31
curl list ftp
curl -P - --insecure "ftp://192.168.0.100:21" --user "user:password"
iptables add if not exists
iptables -C -INPUT -s 1.1.1.1 -j ACCEPT || iptables -A -INPUT -s 1.1.1.1 -j ACCEPT
try fix MySQL slave
STOP SLAVE;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;
START SLAVE;
SHOW SLAVE STATUS \G
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
certbot cloudflare manual dns
certbot certonly --manual --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges dns-01 -d "*.
[ERROR] Exception occured: ISPConfigOSException -> Command mount -o remount
wget -O - https://get.ispconfig.org | sh -s --
[ERROR] Exception occured: ISPConfigOSException -> Command mount -o remount / 2>&1 && quotaoff -avug 2>&1 && quotacheck -avugm 2>&1 && quotaon -avug 2>&1 failed. (/ispconfig.ai.php:15)
Fix OpenVZ install issue
sed -i 's/mount -o remount/echo/' /tmp/ispconfig-ai/lib/os/class.ISPConfigDebianOS.inc.php
php -f /tmp/ispconfig-ai/ispconfig.ai.php
WARNING! This script will reconfigure your complete server!
It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
Type 'yes' if you really want to continue:
yes
list databases mongodb
mongo --quiet --eval "printjson(db.adminCommand('listDatabases'))"