Main Menu

friends

Banner

Latest articles

backup / restore mysql databases with mysqldump
29/12/2009 | mad mad mod

Backup the database

# mysqldump --opt -u username -p password -r mydb.dump mydb


Please note: Redirection does not capture UTF characters properly, while the -r option does (--result-file). I found this  [ ... ]


using lockfiles in shell scripts (BASH)
31/10/2009 | mad mad mod

using lockfiles in shell scripts (BASH) If you want to be 100% sure that only 1 process accesses a resource at the same time, you can use the command "lockfile". Lockfile creates a semaphore file [ ... ]


Other Articles
Facebook MySpace Twitter Digg Delicious Stumbleupon Google Bookmarks 

Designed by:
SiteGround web hosting Joomla Templates
find world writable files E-mail
Security

No file on a server should have o+w permissions (at least I can't think of a reason).

The command to find all world writable files on system is:

# find / -perm -0002  -type f -print

This command will only list regular files (no sockets, links, devices, etc..).


 

 

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting