# ssh-keygen -p -f private_key Enter old passphrase: Key has comment 'private_key' Enter new passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved with the new passphrase.
Saturday, September 17, 2016
Change or Remove Passphrase Key in ssh Private Key
Change or Remove Passphrase Key in ssh Private Keys
Saturday, September 26, 2015
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
I have an error after I do fdisk on my new disk.
[root@local ~]$
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 243201 1953512001 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@local ~]$
Solution:
hdparm -z /dev/sdb
[root@local ~]$
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 243201 1953512001 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@local ~]$
Solution:
hdparm -z /dev/sdb
Tuesday, December 23, 2014
Thursday, September 25, 2014
How to identify if your bash shell is vulnerable to Bash Code Injection Vulnerability (CVE-2014-6271) , CVE-2014-7169
This new vulnerable in bash is spreading quickly over the Internet just like the heartbleed.
How to know if your bash version is vulnerable?
For Linux
Solution is of course to patch or update to the latest version of bash. Go check out your OS for any updates now.
For Linux
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
For Solaris 10
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
For Solaris 11
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
Solution is of course to patch or update to the latest version of bash. Go check out your OS for any updates now.
Tuesday, May 20, 2014
Starting spamd: child process [22173] exited or timed out without signaling production of a PID file
I upgraded spamassassin and encountered an error when trying to start it.
[root@nelsoncli Mail-SpamAssassin-3.4.0]# /etc/init.d/spamassassin start
Starting spamd: child process [22173] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/spamd line 2960.
[FAILED]
Solution: Run sa-update.
Monday, March 10, 2014
httpd: apr_sockaddr_info_get() failed for
Error:
[root@kraken htdocs]# /usr/local/apache2/bin/apachectl start
httpd: apr_sockaddr_info_get() failed for kraken
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[root@kraken htdocs]#
Solution:
Edit your httpd.conf and check the line
ServerName
You may put ServerName <hostname> or Server localhost
[root@kraken htdocs]# /usr/local/apache2/bin/apachectl start
httpd: apr_sockaddr_info_get() failed for kraken
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[root@kraken htdocs]#
Solution:
Edit your httpd.conf and check the line
ServerName
You may put ServerName <hostname> or Server localhost
Sunday, August 4, 2013
gvfs Permission denied
I'm trying to delete a certain file using inum because I could not delete it using the filename. To my surprise, I could not delete it either. The file I'm trying to delete is:
-rw-r--r-- 1 root root 0 Aug 6 2012 ./?}>L1]?b1?}9?R?#?M???M@
It has an inum of 3932293 so I execute find . -inum 3932293 -exec ls -l {} \; but still could not delete either.
[root@nelsoncli admin]# find . -inum 3932293 -exec ls -l {} \;
-rw-r--r-- 1 root root 0 Aug 6 2012 ./?}>L1]?b1?}9?R?#?M???M@
find: `./.gvfs': Permission denied
So what the heck is gvfs. I have no time to do a research just that my goal is to delete this file. So I search the web and the solution was to unmount it.
root@nelsoncli admin]# umount /home/admin/.gvfs
After that, I was able now to delete the file.
-rw-r--r-- 1 root root 0 Aug 6 2012 ./?}>L1]?b1?}9?R?#?M???M@
It has an inum of 3932293 so I execute find . -inum 3932293 -exec ls -l {} \; but still could not delete either.
[root@nelsoncli admin]# find . -inum 3932293 -exec ls -l {} \;
-rw-r--r-- 1 root root 0 Aug 6 2012 ./?}>L1]?b1?}9?R?#?M???M@
find: `./.gvfs': Permission denied
So what the heck is gvfs. I have no time to do a research just that my goal is to delete this file. So I search the web and the solution was to unmount it.
root@nelsoncli admin]# umount /home/admin/.gvfs
After that, I was able now to delete the file.
Subscribe to:
Posts (Atom)