03-11-2008
Few things that you need to check.
1)Check if Apache is really running.
"ps -ef | grep 'apache'"
2)Check if the executable for htpasswd exists on the system
"whereis htpasswd"
htpasswd is generally found in /usr/bin/htpasswd.
3)If you are not a root user, check if you have proper permissions.Generally the permissions are 755.
Hope this helps!
nua7
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello all
im trying to use in sun Solaris the information received from the top command
now i several machines that dont have install the top program so when im running the script im geting error
saying after im running this code :
set MemoryInfo = `top | grep Memory`
if (... (2 Replies)
Discussion started by: umen
2 Replies
2. UNIX for Advanced & Expert Users
I need to take our unix password file and make the usernames and passwords in a .htpasswd file to protect some webpages. I really dont want to type them in. Any suggestions how I do this?
/---Frank----/ (4 Replies)
Discussion started by: frankkahle
4 Replies
3. UNIX for Dummies Questions & Answers
I wrote a script to batch-create directories with .htaccess and .htpasswd files.
I am using the following line to create the .htpasswd file:
htpasswd -cb .htpasswd $USER $PASS
However, I keep getting this message in return:
Usage: htpasswd passwordfile username
The -c flag creates a new... (1 Reply)
Discussion started by: Spetnik
1 Replies
4. Solaris
I have installed Solaris recently. I was doing "for file in *.c; ...." at the command prompt, it says for: command not found. I tried changing shells, but still wouldn't work.
Any ideas? (7 Replies)
Discussion started by: software2007
7 Replies
5. Shell Programming and Scripting
I created a script that I need to run from time to time, but get this error message. To get it working again I run this command from time to time:
export PATH="$PATH:~/scripts"
I put all my automated scripts in the /scripts directory and would like to run my scripts from any directory... (5 Replies)
Discussion started by: catalinawinemxr
5 Replies
6. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
7. Shell Programming and Scripting
Hi Experts,
I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task.
I am running below command to snmpwalk the router..
snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies
8. UNIX and Linux Applications
I've created .htaccess and use htpasswd comand to create .htpasswd
Now when I try to access my protected area I still have loging panel.
I checked apache error log lile and found that there is some problem with mismatch password.
I use Apache 2.2 .22
Is there some erron in creating... (25 Replies)
Discussion started by: Budrys
25 Replies
9. UNIX for Beginners Questions & Answers
On my MAC - I get Command not found error for some command like mvn , java_home etc .
I CD to the actual directory to take path out of picture and even then i get the command not found error .
anyone else have the same problem ? (3 Replies)
Discussion started by: ambm01
3 Replies
LEARN ABOUT CENTOS
basic_ncsa_auth
basic_ncsa_auth(8) System Manager's Manual basic_ncsa_auth(8)
NAME
basic_ncsa_auth - NCSA httpd-style password file authentication helper for Squid
SYNOPSIS
basic_ncsa_auth passwd file
DESCRIPTION
basic_ncsa_auth allows Squid to read and authenticate user and password information from an NCSA/Apache httpd-style password file when
using basic HTTP authentication.
This password file can be manipulated using htpasswd.
This authenticator accepts: * Blowfish - for passwords 72 characters or less in length * SHA256 - with salting and magic strings *
SHA512 - with salting and magic strings * MD5 - with optional salt and magic strings * DES - for passwords 8 characters or less in length
NOTE: Blowfish and SHA algorithms require system-specific support.
OPTIONS
The only parameter is the password file. It must have permissions to be read by the user that Squid is running as.
CONFIGURATION
basic_ncsa_auth /etc/squid/squid.pass
basic_ncsa_auth must have access to the password file to be executed.
KNOWN ISSUES
DES functionality (used by htpasswd by default) silently truncates passwords to 8 characters. Allowing login with password values shorter
than the one desired. This authenticator will reject login with long passwords when using DES.
AUTHOR
This manual was written by Amos Jeffries <amosjeffries@squid-cache.org>
Based on original documentation by Rodrigo Rubira Branco <rrbranco@br.ibm.com>
COPYRIGHT
This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this file; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
QUESTIONS
Questions on the usage of this program can be sent to the Squid Users mailing list <squid-users@squid-cache.org>
REPORTING BUGS
Bug reports need to be made in English. See http://wiki.squid-cache.org/SquidFaq/BugReporting for details of what you need to include with
your bug report.
Report bugs or bug fixes using http://bugs.squid-cache.org/
Report serious security bugs to Squid Bugs <squid-bugs@squid-cache.org>
Report ideas for new improvements to the Squid Developers mailing list <squid-dev@squid-cache.org>
SEE ALSO
squid(8), htpasswd(1), GPL(7),
The Squid FAQ wiki http://wiki.squid-cache.org/SquidFaq
The Squid Configuration Manual http://www.squid-cache.org/Doc/config/
May 16, 2006 basic_ncsa_auth(8)