Making Sudo work Smart!! – sudo without password prompt May 25, 2010
Posted by networknuts in Uncategorized.Tags: linux delhi, linux india, linux training, linux video, networknuts, networknuts.net, rhce, rhce delhi, rhce video, rhcss, rhcss delhi, rhcss training, rhcss video, sudo, sudo command
1 comment so far
This is a Video that shows how to configure sudo in such a manner that it should not prompt the user to enter the password again.
For a text version of this post, please visit
www.networknuts.net
God Bless
Using IPTables to limit the number of connections – VIDEO!! May 17, 2010
Posted by networknuts in Uncategorized.Tags: iptables tutorials, iptables with connlimit, linux delhi, linux tutorials, networknuts, rhce, rhce video, rhcss, rhcss video, www.networknuts.net, xt_connlimit
add a comment
Video showing how to use IPTables to limit the number of TCP connections to your linux machine. Its a very generalized configuration and can be applied to any server configuration.
God Bless.
How to protect your important file from accidental deletion, in Linux!! A Video May 9, 2010
Posted by networknuts in Uncategorized.Tags: chattr, linux, linux training, linux video, lsattr, networknuts, rhce, rhce bootcamp, rhce delhi, rhce india, rhce training, rhce video, rhcss, rhcss bootcamp, rhcss delhi, rhcss india, secure files linux, www.networknuts.net
add a comment
Video by Network NUTS, showing how to use “chattr” command to secure your important file from being deleted accidentaly.
God Bless
Alok Srivastava
Hacking password protected “single user” mode in Linux May 2, 2010
Posted by networknuts in Uncategorized.Tags: hacking single user mode, linux training, linux tutorials, linux video, redhat, redhat training, rhce, rhce boot camp, rhce delhi, rhce india, rhce video, rhcss, rhcss boot camp, rhcss delhi, rhcss india
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
Apache Load Balancing VIDEO using “pound” April 5, 2010
Posted by networknuts in 1.Tags: apache, apache load balancing, linux video, Network NUTS, redhat, redhat certification, redhat linux, rhce delhi, rhce india, rhce training, rhce video, rhcss delhi, rhcss india, rhcss training, rhct video
add a comment
Check the apache load balancing done using “pound” video on – You Tube.
http://www.youtube.com/watch?v=-WuW27hpHWc
God Bless.
Configuring YUM server for automatic notification to clients March 31, 2010
Posted by networknuts in 1.Tags: linux video, redhat tutorials, rehdat, rehdat linux video, rhce, rhce boot camp, rhce delhi, rhce india, rhce training, rhce video, rhcss, rhcss boot camp, rhcss delhi, rhcss india, www.networknuts, yum linux, yum server configuration linux
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.
Making Directory Listing – Make Sense !! March 28, 2010
Posted by networknuts in 1.Tags: linux delhi, networknuts.net, redhat, redhat linux, rhce, RHCE COURSE, rhce delhi, rhce india, rhce video, rhcss, rhcss delhi, rhcss india, rhcss video, www.networknuts.net
add a comment
Normally when we give “ls -l” command or “ll” command it shows us all the files and directories in alphabetic order.
Sometimes it will be pain in the neck, if you are looking for a directory or looking for file. (as it will show you both)
There is as such no command available (to my knowledge) which will show you directories only and files only, as per your specification.
But we can do a SMALL tweak, to make our job easier.
Here is the command to view directories only :
ls -l | egrep '^d'
And, here is the command to view files only :
ls -l | egrep -v '^d'
You can also create some alias for these big command, as it is not practically good to write the same code again and again
alias llf="ls -l | egrep -v '^d'"
alias lld=ls -l | egrep '^d'"
You can always use “.bash_profile” file to make these aliases permanent.
PS: Check out – http://www.youtube.com/user/networknutsdotnet
for video of this small trick.
For more tips and trick on linux – www.networknuts.net
God Bless.