linux | MyLiteratureTechLife.COM

How to find process root in Linux

November 10th, 2010 0 Comments

If you find a process creating load on your linux machine, and you want to find the application, file or script which is running this process and ps aux command is your friend. Suppose, a php process is running and creating load, you can run ps aux | grep php It will show the the path to file...



CO.CC:Free Domain

How to create non root users in Linux

October 9th, 2010 0 Comments

- Command to Create a user in linux is # useradd [username] Replace [username] with the name of user you want to set. Lets make a testuser # useradd testuser - Setup the password for user # passwd useradd This will make a user directory in /home However if you have a directory already...

Managing services with update-rc.d

August 15th, 2010 0 Comments

When installing a new service under debian, the default is to enable it. So for instance, if you just installed apache2 package, after you installed it, apache service will be started and so will it be upon the next reboots. If you do not use apache all the time, you might want to disable this...

How to secure SSH in your server ?

May 15th, 2010 0 Comments

1) Set a very strong password, keep it in your mind but dont write in somewhere. 2) Disable direct root login emacs /etc/ssh/sshd_config Search for #PermitRootLogin yes Set it as PermitRootLogin no Restart ssh service sshd restart 3) Limit user login AllowUsers username Restart...

How to open and close port in iptables ?

May 15th, 2010 1 Comment

Few of very simple steps 1) Login using root 2) Enter following command to open port in iptables iptables -A INPUT -p tcp --dport 25 -j ACCEPT 3) Enter following command to close port in iptables iptables -A INPUT -p tcp --dport 25 -j DROP 4) Save iptables service iptables save OR...

Configuring range of ips in Linux,Centos,fedora core, red hat

April 21st, 2010 0 Comments

Thats pretty simple Just configure on ips in /etc/sysconfig/network-scripts/ifcfg-eth0 Then Make a new file named ifcfg-eth0-range0 emacs /etc/sysconfig/network-scripts/ifcfg-eth0-range0 Put following code in it IPADDR_START=192.168.0.101 IPADDR_END=192.168.0.200 CLONENUM_START=1 Save...

Alexa Rank