Limit OpenSSH access in Linux

By using “Match” in the OpenSSH configuration file we can limit the right a certain user, group or host enjoys. Add the Match directive in your sshd_config followed by a criteria (User, Group, Address or Host). The following example limits TCP and X11 port forwarding for the jack user: AllowTcpForwarding no X11Forwarding no Match User… Read More »

Block Yahoo Messenger, AOL, MSN and ICQ using IPTABLES

If you’re a network administrator and you’re using Linux on your servers, you can stop the rest of the users from using IM applications by blocking their access to the most-used IM protocols: ICQ and AOL: # iptables -A FORWARD –dport 5190 -j DROP # iptables -A FORWARD -d login.oscar.aol.com -j DR OP MSN: #… Read More »

Better default compression with GZIP

If you’d rather use the maximum compression settings in GZIP, use export GZIP=–best in CLI. Next time you’ll archive a folder or a set of files, compression will take place at the highest level.

Share the same SWAP partition in Linux and Windows

If you’re short on hard disk space and would like to share the same SWAP partition in Linux and Windows, you can try the following trick: 1. Format the partition as a DOS partition and create the Windows SWAP file on it, but do not boot Windows yet. 2. Boot in Linux and save the… Read More »