jump to navigation

Turbo Charged SSH!!! June 1, 2010

Posted by networknuts in Uncategorized.
Tags: , , , , , , , , , , , , , ,
add a comment

Video showing how to make SSH work real FAST.

For more interesting post, tips and tricks visit — www.networknuts.net

God Bless

Hacking password protected “single user” mode in Linux May 2, 2010

Posted by networknuts in Uncategorized.
Tags: , , , , , , , , , , , , , ,
1 comment so far

Single user mode can be protected by appending this line in /etc/inittab

su:S:wait:/sbin/nologin

if this line is present in the /etc/inittab – the machine will ask for root p@$$word

Hack

while booting p@$$ this kernel parameter –

init=/bin/bash

by p@$$ing this parameter, I am saying to the kernel, “rather than starting /sbin/init and proceed with the usual /etc/rc.d/* procedure, just simply give us a shell”. That means:

NO p@$$word checks
NO filesystem checks
NO startup environment

…as no filesystem checks has been made, the filesystem will be in read-only mode.

Now give this command, to make root filesystem writable.

mount -o remount, rw /

Once the p@$$word is reset or done anyother thing you wanted to do, DO NOT REBOOT.

mount -o remount, ro /

NOW PRESS THE RESET BUTTON

You can also see the video of this post

God Bless

Alok Srivastava

Linux Bash Shell Script to clear logs automatically – VIDEO April 25, 2010

Posted by networknuts in Uncategorized.
Tags: , , , , , , , , , , , , ,
add a comment

Video by www.networknuts.net, showing how to create a linux bash shell script to clear logs automatically and carefully.

God Bless.

Split large file into smaller files – Linux April 10, 2010

Posted by networknuts in 1.
Tags: , , , , , , , , , , , , , , , , ,
add a comment

Here is a small trick to split a big iso file (or any other big file) into smaller files of your desired size.

Use the SPLIT tool that comes with your OS.

Suppose I have a big iso file name “bigfile.iso” of size more than 3 GB and I want to split in into smaller iso files of size 1GB.

Here is how to do it:

split --byte=1024m bigfile.iso smallfile_

what this command will do?

It will actually split the bigfile.iso file into smaller files of size 1GB having names – smallfile_aa, smallfile_ab and so on…

So just enjoy the split, now.

And remember you can always use the CAT command to join them again:

cat smallfile_a* > newbigfile.iso

PS : Check out the video of this post at -http://www.youtube.com/watch?v=7Gv1FuLUH1o


God Bless.

Allow TELNET from ROOT April 6, 2010

Posted by networknuts in 1.
Tags: , , , , , , , , , , , , , ,
add a comment

We all know that TELNET because of its weak authentication doesn’t allow “root” user to login.

But there is a TWEAK that will allow TELNET as ROOT.

STEP #1 – Install TELNET

yum install telnet-server

STEP #2 – Make TELNET active. Edit “/etc/xinetd.d/telnet” file and make

disable = no

STEP #3 – Configure PAM to allow TELNET as ROOT. Edit “/etc/pam.d/remote” file and find and comment this line

auth required pam_securetty.so
#auth required pam_securetty.so

STEP #4 – Restart the TELNET service

/etc/init.d/xinetd restart; chkconfig xinetd on

ENJOY the TELNET with ROOT credentials (at your own risk please)

God Bless.

PS: Check VIDEOS of interesting Linux tips and tricks on YOU-TUBE.

http://www.youtube.com/user/networknutsdotnet

Configuring YUM server for automatic notification to clients March 31, 2010

Posted by networknuts in 1.
Tags: , , , , , , , , , , , , , , , ,
add a comment

We have a situation. We have 100+ client machines in our network and whenever some new package is available on YUM, I want all the clients to get updated for the new package via email so that they can use the package, if they need.

How to configure YUM to send email for updates available on server.

STEP #1 – Edit /etc/yum/yum-updatesd.conf

STEP #2 – Edit / Add these lines:

emit_via = email
email_to = staff@yourdomain.com
email_from = yumserveradmin@yumserver.example.com

STEP #3 - Save and Restart the service.

service yum-updatesd restart
chkconfig yum-updatesd on

So now your YUM server will be sending a email to staff user (it can be aliased in your MTA configuration) whenever a new package is available.

Check the video of this post on http://www.youtube.com/user/networknutsdotnet

God Bless.

Configuring, Managing and Tuning Swap Memory in Linux – Video March 26, 2010

Posted by networknuts in 1.
Tags: , , , , , , , , , , ,
add a comment

See the video of – Configuring, Managing and Tuning Swap Memory in Linux via youtube.

http://www.youtube.com/watch?v=1q_05tD2gzY

Please comment, rate and subscribe the channel to get latest updates from Network NUTS.

God Bless.

Follow

Get every new post delivered to your Inbox.

Join 484 other followers