Skip to main content

Posts

Showing posts from December, 2014

How to change ISPConfig admin user password

In order to change ISPConfig administrator password you will have to connect to your MySQL using the command line. It can be done using the following command: mysql -u root -p[yourrootpassword] After that select the database called " dbispconfig ". This can be done using the following command: use dbispconfig;  - selects the MySQL database called " dbispconfig " Finnally execute the following command to change password : UPDATE sys_user SET passwort = md5('NEWPASSWORD') WHERE username = 'admin';  - enter your desired password where text "NEWPASSWORD" is present. After that simply connect to your ISPConfig using new admin password!

How to Add an Admin User to the WordPress Database via MySQL

First, you need to login to phpMyAdmin and locate your WordPress database. (Below is a screenshot of a Hosting cPanel) Once you are in, we will be making changes to the wp_users and wp_usermeta tables. Lets go ahead and click on  wp_users  table. We need to insert our new admin user's information, so click on the Insert tab like it shows in the image above. In the insert form, add the following: ID  – pick a number (in our example, we will use the number 4). user_login  – insert the username you want to use to access the WordPress Dashboard. user_pass  – add a password for this username. Make sure to select MD5 in the functions menu (Refer to the screenshot below). user_nicename  – put a nickname or something else that you would like to refer yourself as. user_email  – add the email you want to associate with this account. user_url  – this would be the url to your website. user_registered  – select the date/time for when this user is registered. user_status  – set this to 0. displa

How to recover deleted files on Linux

On a typical file system, deleting a file doesn't necessarily mean that it is gone for good. When a file is removed, its meta data (e.g., file name, size, time, location of data block, etc.) is gone, but actual file data is untouched inside the file system, until the location of the data is overwritten by other file data. This means that if you accidentally deleted a file, there is a chance that you can recover the file. In this tutorial, I describe  how to recover deleted files on Linux . There are several  file recovery tools  on Linux. Among them is  PhotoRec  which is an open source file recovery software licensed with GPLV v2+. PhotoRec is available on Linux, BSD, MacOS X and Windows. PhotoRec Features As the name implies, PhotoRec is originally designed to restore accidentally deleted digital photos. However, now it has become versatile enough to support  various file formats . PhotoRec recovers lost files by checking data blocks one by one against a signature database of dif

Bring back deleted files with lsof

There you are, happily playing around with an audio file you've spent all afternoon tweaking, and you're thinking, "Wow, doesn't it sound great? Lemme just move it over here." At that point your subconscious chimes in, "Um, you meant  mv , not  rm , right?" Oops. I feel your pain -- this happens to everyone. But there's a straightforward method to recover your lost file, and since it works on every standard Linux system, everyone ought to know how to do it. Briefly, a file as it appears somewhere on a Linux filesystem is actually just a link to an  inode , which contains all of the file's properties, such as permissions and ownership, as well as the addresses of the data blocks where the file's content is stored on disk. When you  rm  a file, you're removing the link that points to its inode, but not the inode itself; other processes (such as your audio player) might still have it open. It's only after they're through and all link

15 Linux lsof Command Examples (Identify Open Files)

lsof stands for List Open Files. It is easy to remember lsof command if you think of it as "ls + of", where ls stands for list, and of stands for open files. It is a command line utility which is used to list the information about the files that are opened by various processes. In unix, everything is a file, ( pipes, sockets, directories, devices, etc.). So by using lsof, you can get the information about any opened files. 1. Introduction to lsof Simply typing lsof will provide a list of all open files belonging to all active processes. # lsof COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 root cwd DIR 8,1 4096 2 / init 1 root txt REG 8,1 124704 917562 /sbin/init init 1 root 0u CHR 1,3 0t0 4369 /dev/null init 1 root 1u CHR 1,3 0t0 4369 /dev/null init 1 root 2u CHR