LIVE FEED :: 11111110.00000000.00000000.00000001

Tugriceri Web Notes

Operational telemetry, Linux internals, forensic carving, and infrastructure automation war stories. by Emre Tugriceri.

88 Field Runbooks 30 System Taxonomies Archive: 2013 – 2026 SYS_HEALTH: OPTIMAL
Emre Tugriceri • • 1 min read
Antivirus Security

uvscan process is too slow

# time uvscan --version
McAfee VirusScan Command Line for Linux64 Version: 6.0.3.356
Copyright (C) 2010 McAfee, Inc.
(408) 988-3832 LICENSED COPY - November 26 2010

AV Engine version: 5400.1158 for Linux64.
Dat set version: 5985 created May 17 2010
Scanning for 619012 viruses, trojans and variants.


real 0m9.501s
user 0m9.365s
sys 0m0.132s


# uvscan --decompress
McAfee VirusScan Command Line for Linux64 Version: 6.0.3.356
Copyright (C) 2010 McAfee, Inc.
(408) 988-3832 LICENSED COPY - November 26 2010

AV Engine version: 5400.1158 for Linux64.
Dat set version: 5985 created May 17 2010
Scanning for 619012 viruses, trojans and variants.

This program is more than 5 months old. New viruses come out all the
time - we would suggest that you upgrade your copy.


Time: 00:00.00



# time uvscan --version
McAfee VirusScan Command Line for Linux64 Version: 6.0.3.356
Copyright (C) 2010 McAfee, Inc.
(408) 988-3832 LICENSED COPY - November 26 2010

AV Engine version: 5400.1158 for Linux64.
Dat set version: 5985 created May 17 2010
Scanning for 619012 viruses, trojans and variants.


real 0m2.801s
user 0m2.664s
sys 0m0.135s


Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Linux

Multipath - Volume Groups

Multipath in SAN den diskleri hatalı gormesi sebebi ile volume gruplarda problem oluyor. Diskleri düzgün görmesi için config i flush layıp tekrardan dm leri oluşturmalı ve volume groupları tekrar enable etmeliyiz.

/sbin/multipath -F
/sbin/multipath
/sbin/vgchange -a y
mount /dev/vg0/lvol0 /mnt/data

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Security

crt to der

openssl x509 -in auth_tugriceri_com.crt -out auth_tugriceri_com.der -outform DER

openssl rsa -in www_tugriceri_com.key -outform DER -out www_tugriceri_com-der.key

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Uncategorized

Opennms Reindex database

<font><font><font><font face="Arial, Helvetica, sans-serif">psql -d opennms -c “REINDEX DATABASE opennms FORCE”
vacuumdb -v opennms -U opennms -W
</font></font></font></font>



Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Uncategorized

Resize LV

pvresize -v -d /dev/dm-0
vgdisplay
lvextend -L400G /dev/VGD/datalv
resize2fs /dev/VGD/datalv
e2fsck -f /dev/VGD/datalv
resize2fs /dev/VGD/datalv
mount /dev/VGD/datalv /mnt/data

Comments (0) Read Playbook →
Emre Tugriceri • • 1 min read
Security SSH

Sftp chroot settings

cat /etc/ssh/sshd_config

Subsystem sftp internal-sftp


Match group sftponly
ChrootDirectory /chroot
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

cat /etc/passwd
testuser:x:500:504::/:/bin/bash
sftponly:x:504:testuser



Comments (0) Read Playbook →