How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd

Working on a website that you need others to see, but not the whole world? Password protecting a website (or a sub directory within a website).

Protecting files on your website from unauthorized users can be very important. You can use PHP or any language to listen for login authorization information on each page, but that doesn’t protect your images, documents, and other media and it is not proper way to do so.

That’s why I’ve found the new method of protecting files and directories the most reliable and is actually a pretty easy thing to do.

screenshot_001_3

Continue reading “How to Password Protect a Website or Web SubDirectory With .htaccess & .htpasswd”

Advertisements

HOW TO RECOVERY A PASSWORD USING THE RECOVERY MODE OF UBUNTU 14.04LTS SERVER EDITION

Riccardo Magrini

Ubuntu_Kernel_Server

IN CASE WE NEED TO RECOVERY A PASSWORD MISSED IN OUR UBUNTU 14.04LTS SERVER EDITION THE BEST PROCEDURE TO RE-SET IT IS TO USE THE RECOVERY MODE.

1 STEP – RECOVERY MODE

REBOOT THE SYSTEM AND OPEN IN GRUB MENU AND GOTO “Advance options …”

Screenshot from 2014-04-23 12:09:05

SELECT THE RECOVERY MODE

Screenshot from 2014-04-23 12:09:11

SELECT THE OPTION “root …”

Screenshot from 2014-04-23 12:09:43

2 STEP – SET NEW PASSWORD

NOW RUN THE COMMAND

$: mount -rw -o remount /

Screenshot from 2014-04-23 12:10:44

SET A NEW PASSWORD FOR OUR USER (IN THIS CASE IS “user”)

Screenshot from 2014-04-23 12:10:53

NOW REBOOT THE OS

$: reboot

AT THIS POINT WE CAN USE THE NEW PASSWORD FOR THE ACCOUNT “user”.

“cya to the next 1…. Njoy !”

Disclaimer: All the tutorials included on this site are performed in a lab environment to simulate a real world production scenario. As everything is done to provide the most accurate steps to date, we take no responsibility if you implement any of these steps in…

View original post 8 more words

How to disable Guest Session Login in Ubuntu Trust 14.04

Techie Notes

  1. “sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf”
  2. Add the following line: “allow-guest=false”
  3. Save the file
  4. Enjoy!

OR you can simply run the following command:

  1. ” echo allow-guest=false | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf”
  2. You can still Enjoy! 🙂

Source: http://www.noobslab.com/2014/04/thingstweaks-to-do-after-install-of.html

View original post