Tag archive for ‘password’

Create users in OpenVZ Containers

Helper script to create users on all OpenVZ VEs simultaneously:   #!/bin/bash # create_ve_users.sh # Usage: ./create_ve_users.sh <username> <password> <uid> <group1,group2> USERNAME=$1 PASSWORD=$2 USERID=$3 GROUP=$4 EXPECTED_ARGS=4 OUT_FILE=.create_users_$$ if [ $# -ne $EXPECTED_ARGS ] then echo “Usage: `basename $0` <username> <password> <uid> <group1,group2>” exit 65 fi VE_LIST=$(/usr/sbin/vzlist -H -o veid) for VE in ${VE_LIST} do vzctl [...]

Howto: Password Protect a directory using .htaccess

How to Password Protect a Directory using .htaccess? You may need to password protect a directory in order to limit the sharing of files under it OR may need to protect a private area. You can password protect a directory using a .htaccess file which has to be placed under a directory which needs to [...]

Plesk webmail + DB Error: connect failed

You may receive the following error message while accessing Webmail on a Plesk server: A fatal error has occurred DB Error: connect failed You need to make sure the ‘horde’ user is able to connect to the ‘horde’ database using the password mentioned in the file “/etc/psa/.webmail.shadow”. You have to create the file and specify [...]

WordPress

I. VULNERABILITY WordPress <= 2.8.3 Remote admin reset password II. BACKGROUND WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time. More simply, WordPress is what you use when you want to work with your blogging software, not fight it. [...]

Password Protect a Directory

1. Create a .htaccess file AuthName “Secure Area” AuthType Basic AuthUserFile /path/to/your/directory/.htpasswd require valid-user 2. Create a .htpasswd file under the account using this command htpasswd -c .htpasswd your-user-name and give the password 3.  If you have more than one user, then htpasswd .htpasswd another-user-name 4. Make sure the permission of file .htpasswd is 644 [...]

Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) part1

Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV) Version 1.0 Author: Falko Timme <ft [at] falkotimme [dot] com> Last edited 10/05/2005 This tutorial is Copyright (c) 2005 by Falko Timme. It is derived from a tutorial from Christoph Haas which you can find at http://workaround.org. You are free to [...]

How Do I Secure Grub Boot Loader?

You can set a password for the GRUB bootloader. This prevents users from entering single user mode or changing settings at boot time. When your system is rebooted, grub presents the boot option menu. From this menu one can easily login into a single user mode without the password which might result into compromise system [...]

Shell script to Finding Accounts with No Password ( null password account )

A password is a form of secret authentication data that is used to control access to a resource. The password is kept secret from those not allowed access, and those wishing to gain access are tested on whether or not they know the password and are granted or denied access accordingly. This script find out [...]

Linux wget: Your Ultimate Command Line Downloader

It is a common practice to manage UNIX/Linux/BSD servers remotely over the ssh session. You may need to download download the software or other files for installation. There are a few powerful graphical download manager exits for Linux and UNIX like operating systems: d4x: Downloader for X is a Linux/Unix userfriendly program with nice X [...]

FreeBSD > Becoming super user (su) or enabling su access to user

The superuser is a privileged user with unrestricted access to all files and commands. The superuser has the special UID (user ID) 0. You need to become super user (root) only when tasks need root permissions. Here is how to become super user: 1) At shell prompt type su and press enter key, when prompted [...]