A note on securing users password using hash on mysql
Login inside mysql shell
once login, issue the command
select password('internet');
assuming internet is the clear password
result below for the command:
mysql> select password('internet');
+-------------------------------------------+
| password('internet') |
+-------------------------------------------+
| *797420C584EBF42750EB523104268BA0FD87FBC8 |
+-------------------------------------------+
1 row in set (0.00 sec)
*797420C584EBF42750EB523104268BA0FD87FBC8 secure password that can be use
upon granting DB rights.
mysql> grant select,insert,update on dummy-db.* to 'testuser'@'%.%.%.%' identified by password '*797420C584EBF42750EB523104268BA0FD87FBC8';
Query OK, 0 rows affected (0.00 sec)
Query above will encrypt the defined password of user testuser on access to dummy-db and able to access from any remote ip. If you verify by using the mysql DB and select * from user;
| %.%.%.% | testuser | *797420C584EBF42750EB523104268BA0FD87FBC8 |
the cleartext password would be "internet".
Cisco | Linux | Mandriva | Centos | FreeBSD | GNS3 | Windows 2003 | RedHat | LVM | Rhev 3
Friday, April 19, 2013
Friday, April 5, 2013
Using proxy on yum and wget
1. do the command "export http_proxy=xxx.xxx.xxx.xxx:yyyy" assuming that you will be using ip address as your proxy and you are login as user or root, the proxy will be exported on your environment.
example:
export http_proxy=192.168.1.1:8080
2. for directly set the proxy at yum configuration. Append the line
proxy=http://192.168.1.1:8080
at /etc/yum.conf
that way, proxy is directly set at yum
thanks to those document found when googling. this is just my reference.
example:
export http_proxy=192.168.1.1:8080
2. for directly set the proxy at yum configuration. Append the line
proxy=http://192.168.1.1:8080
at /etc/yum.conf
that way, proxy is directly set at yum
thanks to those document found when googling. this is just my reference.
Subscribe to:
Posts (Atom)