Question
Login is not possible when enabling authentication as described in
TWikiInstallationGuide.
When trying to edit a page, the login-window-prompt appears as expected, but User and Password are not accepted. After cancelation the
TWikiRegistration (oops) -Page appears. Login as
TWikiGuest/guest is also not possible.
Apache Error log shows
Could not open password file :
[Wed Dec 31 14:13:41 2003] [error] [client 192.168.0.129] (2)No such file or directory: Could not open password file: /twiki/data/.htpasswd
[Wed Dec 31 14:13:41 2003] [error] [client 192.168.0.129] user MyUser not found: /twiki/bin/edit/Sandbox/WebHome
It behaves as if .htpasswd was not there (which I tested by renaming it), but the
.htpasswd is definitely there:
bash-2.05b$ ls -al /twiki/data/.h*
-rwxr-xr-x 1 SYSTEM Kein 111 Dec 31 01:53 /twiki/data/.htpasswd
Registration of new users seems to work OK and creates an entry in
/twiki/data/.htpasswd
bash-2.05b$ cat /twiki/data/.htpasswd
TWikiGuest:zK.G.uuPi39Qg
MyAdmin:{SHA}uDyT4PrNJ mKcyGUSkjSiLBXyW0=
MyUser:{SHA}Et6pb+wgWTVmq3VpLJlJWWgzrck=
Settings in
/twiki/bin/.htaccess:
AuthUserFile /twiki/data/.htpasswd
AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
AuthType Basic
By the way, I didn't find any
Redirect Statement in
/twiki/bin/.htaccess an therefore did not include
Redirect /urlpathto/twiki/index.html http://yourdomain.com/urlpathto/twiki/bin/view
as described in
TWikiInstallationGuide. I tested to add this line (with the correct information), but it did not change anything about my login problem.
I also tested about the rights (
chmod 777 ) for
/twiki/data/.htpasswd
Without authentication, pages can be created and edited without any problems,
everything seems to work.
Any ideas? Right settings, problems with German Win2k (didn't modify any local settings)? Also checked
AuthenticationProblem, but this seems to by slightly different...
Thanks for you help!
Environment
--
TWikiGuest - 31 Dec 2003
Answer
Please post the HTML output of
CVSget:bin/testenv
, as per
SupportGuidelines - this tests for the permissions of the
data directory. Also, including the
ls -l output for
/twiki and
/twiki/data would help.
Google:insecure+permissions+Windows+TWiki
may also help, this issue has come up before on Windows XP and was related to permissions (which may not be fully visible using
ls -l, depending on your
CygWin setup).
--
RichardDonkin - 21 Jan 2004
Hi Richard,
thanks for your help. Attached are the files. I checked the security permissions as proposed in
AnotherInsecureDirectory. I'm quite sure, that it has got something to do with it, because misconfigured permissions often cause these nasty, difficult-to-find-errors. But I still couldn't find the right solution...
At the beginning of my installation, I needed to add the user
SYSTEM to my CYGWIN-Directory because of this
Insecure directory in $ENV{PATH} -Error (see first part of
Apache_error.log). To apply this more easily, I checked the
"Inherit Permission" box for all CYGWIN-Subdirectories. Might this be the source of my troubles?
Thanks, Chris.
--
TWikiGuest - 22 Jan 2004
Changed
SupportStatus to "AskedQuestions"; this subject is still relevant to me. I like to implement TWiki as a knowledge-management system at my department. But I'll probably need to reinstall on another machine anyway...
--
TWikiGuest - 04 Apr 2004
It may be worse adding "c:/" (or whatever drive you have your twiki folder in) in front of the path for your .htpasswd file. Let us know it does help.
--
MarcelTrap - 06 Apr 2004
Adding
c:/ was the perfect thing to do! Finally correcting the settings in
/twiki/bin/.htaccess: to
AuthUserFile c:/progs/twiki/data/.htpasswd
did the thing. This kind of mixed writing at this point was not clear to my in the
TWikiInstallationGuide
Thanks a lot, Chris.
--
TWikiGuest - 05 May 2004
Hi,
I'm having almost a similar problem.
When I set
AllowOverride All, on httpd.conf file, an Apache prompt appear asking for 'Enter your
WikiName: (First name and last name, no space, no dots, capitalized, e.g.
JohnSmith)', as required by included twiki.conf file
This is ok, but I can not access with my usual
WikiName, stored in the
AuthUserFile c:/wamp/www/twiki/data/.htpasswd
When
AllowOverride is set to None, I can access correctly by the logon page of Twiky, with the usual
WikiName and password.
Maybe I need to set something more? Thanks a lot for the kind reply.
--
TWikiGuest - 2011-09-19
Please open a new question topic.
--
PeterThoeny - 2011-09-19