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...
- 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...
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...
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...
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...
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...