Authentication via .htaccess and .htpasswd

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Authentication via .htaccess and .htpasswd
# 15  
Old 12-21-2014
I just had another idea.

What character set are you using in the terminal, and what character set are you using in the webpage? A password from one character set might not match the hash of a password given in another character set. Make sure they agree.
# 16  
Old 12-21-2014
How can I do that?
# 17  
Old 12-21-2014
Try echo $LOCALE. It may also depend on your distribution.
# 18  
Old 12-21-2014
Quote:
Originally Posted by Corona688
Try echo $LOCALE. It may also depend on your distribution.
At least on OS X, the command:
Code:
echo $LOCALE

produces an empty line.

The standard way to determine the current locale settings is:
Code:
locale

And to see if your environment has any variables set that override your system's default locale:
Code:
set | grep -e '^LANG=' -e '^LC_'

# 19  
Old 12-22-2014
I run:
Code:
set | grep -e '^LANG=' -e '^LC_'

and I got:
Code:
LANG=pl_PL.UTF-8

# 20  
Old 12-22-2014
OK. So when you're logged in, you're set up to use a UTF-8 codeset and using a locale providing conventions used in Poland.

Now, what character set and locale conventions are being used by your website?
# 21  
Old 12-22-2014
How could I check that in my browser?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

.htaccess redirect with #

I have the following directive in my .htaccess: #RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh" The problem is that the redirect is going to http://www.seobook.com/%23a_aid=dh How to preserve the # when redirecting? (2 Replies)
Discussion started by: rlopes
2 Replies

2. UNIX for Advanced & Expert Users

Redirect with htaccess

Hi, I would like to use htaccess 301 redirect with URL hiding. Ex: when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Discussion started by: chandranjoy
0 Replies

3. UNIX for Dummies Questions & Answers

Resolved: htpasswd issues (-b) on FreeBSD

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. UNIX for Advanced & Expert Users

need to convert passwd file to .htpasswd

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

5. Linux

htpasswd command not found

dear unix, need ur help, i have installed apache n apache is working... but i cant use htpasswd , the error said command not found. for web authentucation... thanks for any help :confused: (4 Replies)
Discussion started by: click007
4 Replies

6. Cybersecurity

htaccess

Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version. HELP!!! (1 Reply)
Discussion started by: _hp_
1 Replies

7. UNIX for Dummies Questions & Answers

.htaccess

i want to protect a folder on my HP.... does the folder need more than ".htaccess" and ".htpasswd" to be protected , and ask for login and password??? Please help ...... i use HTAdmin 1.2.1 to manage my access files.. The systemadmin cant or wount answer.....:confused: Avenger (3 Replies)
Discussion started by: Avenger
3 Replies

8. UNIX for Dummies Questions & Answers

.htaccess?

For a schoolproject, I have to set up an intranet at a company headquarters in the Netherlands. But they want to give the division in the United States access to that intranet. I have to find out how to do that. I've heard that you can do that by giving certain people access to the intranet with... (1 Reply)
Discussion started by: Puc conDoin
1 Replies
Login or Register to Ask a Question