Wednesday, August 31, 2011

VSFTPD installation and configuration under CentOS 5.6 64-bit

INSTALLATION
Execute the follow command to search available packets for you repository
yum search vsftp
This is the output.....
#Loaded plugins: fastestmirror
#Loading mirror speeds from cached hostfile
# * base: centos.fastbull.org
# * extras: centos.fastbull.org
# * updates: centos.fastbull.org
#================================ Matched: vsftp #================================
#vsftpd.x86_64 : vsftpd - Very Secure Ftp Daemon
So now we can correcly install it via:
yum install vsftpd

CONFIGURATION
Add a new user:
useradd -m example
give a password
passwd examplePassword

Now we can modify the vsftp configuration file...
/etc/vsftpd/vsftpd.conf
to allow or not the anonymous access and the other settings....

After we can start the vsftp deamon
/etc/init.d/vsftpd start
Every configuration file editing wants a restarts of the deamon...
/etc/init.d/vsftpd restart


USE
connect via ftp to your host and one of the availables system accounts.


Bye

Thursday, August 25, 2011

MySql: how to reset root password

Ensure that all mysql processes are down.
Kill all one by one or use
killall mysqld
and/or
killall mysql
Then create a new file /home/usr_home/reset_root_pwd with the following content

UPDATE mysql.user SET Password=PASSWORD('YourNewRootPassword') WHERE User='root';
FLUSH PRIVILEGES;

Then login a console as mysql user and give the following command:
mysqld_safe --init-file=/home/usr_home/reset_root_pwd &

 
After stop the server and restart it.
Now You should be able to connect as root with the new password.

Bye...

Usefull links: 
- http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
- http://openskill.info/infobox.php?ID=1033


Wednesday, August 24, 2011

Friday, August 19, 2011

YUI DataTable: Highlighting Cells, Rows, or Columns

Usefull links:
- http://developer.yahoo.com/yui/examples/datatable/dt_highlighting.html
- http://developer.yahoo.com/yui/datatable/
- http://developer.yahoo.com/yui/articles/hosting/?datatable&MIN#configure
- http://yuilibrary.com/
- http://twiki.di.uniroma1.it/pub/TWiki/YahooUserInterfaceContrib/examples/datatable/inlineediting.html