Linux

Archive for the ‘Security’

Hide yourself while web browsing

You don’t want your administrator to find out which sites you have been visiting lately. Use SSH for a secure connection. Create a local proxy to run on port 8000: ssh -C -D 8000 -p 443 user@address.com aft which y[...]


Be sure that what’s deleted is really gone

If you really want to zap a file in Linux and be sure that it can’t be ever recovered, use the shred command. shred -u -z -v filename will not only delete the file but also overwrite the sectors it resided in 25 ti[...]


Protect your Linux files by an accidental deletion

You can protect your most important files from accidental deletion by giving them a “sticky bit” attribute: chmod +t filename [...]


Generate random passwords using Perl

If you have a server where you have to generate new passwords daily, the following script can automate the process: #!/usr/bin/perl my @alphanumeric = (’a’..’z', ‘A’..’Z', 0..9); m[...]