by Anjani Phuyal | May 26, 2014 | Linux
Disable user login shell usermod -s /bin/false username Enable User login shell usermod -s /bin/bash username Edit home directory vi /etc/passwd Check the status more /etc/passwd
by Anjani Phuyal | May 26, 2014 | Linux, ubuntu
knife ec2 server create -G default -f t1.micro -S nagios-quick-start -x ubuntu –region eu-west-1 -I ami-ce7b6fba
by Anjani Phuyal | May 26, 2014 | Linux, ubuntu
sudo ufw allow proto tcp from 192.168.0.2 to any port 22 sudo ufw delete deny 22 sudo ufw allow 22 sudo ufw enable Ref: https://help.ubuntu.com/lts/serverguide/firewall.html
by Anjani Phuyal | May 26, 2014 | Linux, ubuntu
This web server is running in SSL mode. Try the URL you should always use https://
by Anjani Phuyal | May 26, 2014 | Centos, Linux, ubuntu
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm rpm -Uhv rpmforge-release-0.5.1-1.el5.rf.i386.rpm 64 bit wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm rpm -Uhv...
by Anjani Phuyal | May 26, 2014 | Centos, Linux, ubuntu
http://www.cyberciti.biz/faq/howto-compress-expand-gz-files/ How do I extract a gz file? $ gunzip file.gz