Langsung ke konten utama

Postingan

How to recover deleted file held open by Apache

If a file has been deleted but is still open, that means the file still exists in the filesystem (it has an inode) but has a hard link count of 0. Since there is no link to the file, you cannot open it by name. There is no facility to open a file by inode either. Linux exposes open files through special symbolic links under  /proc . These links are called  /proc/12345/fd/42  where 12345 is the  PID  of a process and 42 is the number of a file descriptor in that process. A program running as the same user as that process can access the file (the read/write/execute permissions are the same you had as when the file was deleted). The name under which the file was opened is still visible in the target of the symbolic link: if the file was  /var/log/apache/foo.log , then the target of the link is  /var/log/apache/foo.log (deleted) . Thus you can recover the content of an open deleted file given the  PID  of a process that has it open and the descriptor that it's opened on like thi

Cara melakukan SSH Port Forwarding

1. konfigurasi ssh di server forward dengan menambahkan vi /etc/ssh/sshd_config GatewayPorts yes 2. ketikan perintah di server forward /usr/bin/ssh -f -C -R Portforward:IPserverTujuan:Porttujuan usernamekita@localhost -pPortKita ping 8.8.8.8 -s1 Contoh: /usr/bin/ssh -f -C -R 2225:192.168.90.x:22 pandu@localhost -p22 ping 8.8.8.8 -s1

ORA-28001: THE PASSWORD HAS EXPIRED

Connect as sysdba to the database. [oracle@ijindbclone ~]$  sqlplus / as sysdba Run the query to set the password’s life time to unlimited. SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED; Profile altered. Set a password for the locked user. SQL> ALTER USER user_name IDENTIFIED BY password; User altered. Unlock the user account. SQL> ALTER USER user_name ACCOUNT UNLOCK; User altered. Make sure your user is not locked anymore. SQL> SELECT USERNAME,ACCOUNT_STATUS FROM DBA_USERS; USERNAME ACCOUNT_STATUS ------------------------------ -------------------------------- HR                             OPEN ANONYMOUS                      OPEN APEX_040000                    LOCKED FLOWS_FILES                    LOCKED XDB                            EXPIRED & LOCKED CTXSYS                         EXPIRED & LOCKED MDSYS                          EXPIRED & LOCKED SYSTEM                         OPEN SYS                            OPEN

Membuat sinyal wifi semakin kuat di Ubuntu 16.04 LTS dengan driver Realtek RTL8723BE

untuk memperkuat Sinyal Wifi di laptop ubuntu kita, dapat kita lakukan dengan mematikan wifi driver kita terlebih dahulu. dengan mengetikkan: sudo modprobe -rv rtl8723be lalu nyalakan kembali dengan mengetikkan perintah: sudo modprobe -v rtl8723be ant_sel=1 Untuk mempermanenkan setingan diatas kita bisa mengatikkan perintah: sudo tee /etc/modprobe.d/rtl8723be.conf <<< "options rtl8723be ant_sel=1" Selesai