Find the answer to your Linux question:
Results 1 to 6 of 6
Hi there, I want to password protect a directory but it is not working yet. The following error is found in my log: Code: invalid command 'AuthDBMUserFile' perhaps misspelled or ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416

    Directory Authentication


    Hi there,

    I want to password protect a directory but it is not working yet.
    The following error is found in my log:
    Code:
    invalid command 'AuthDBMUserFile' perhaps misspelled or defined by a meodule not included in the server configuration
    .htaccess
    Code:
    AuthName = "Family Only"
    AuthType Basic
    AuthDBMUserFile /usr/somedir/userdb
    require valid user
    What permissions does this file need?

    I have the AllowOverride AuthConfig Option set in a directory under my virtualhost. I was able to succesfully create users with the dbmmanage command

    Any ideas?
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  2. #2
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    I have fixed it by doing it a bit different. I have removed the .htaccess file and specified the options in the directory. Afterwards I created a userdb wit htpassword.

    What is the difference between this and dbmmanage?

    Cheers
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  3. #3
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    I think you will have to replace the
    "AuthDBMUserFile" directive with
    "AuthUserFile"
    I dont think there is any directive called AuthDBMUserFile, is there??

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    I did change that to AuthUserfile when I put the directives in my directory.
    Originally I had put the content in an .htaccess file and use AuthDBMUserfile because that's what it said in an example I got from a book.
    As this did not worked I used AuthUserfile as described on the Apache site.
    I'll have to try it again with a .htaccess file.

    Cheers
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

  6. #5
    Linux User
    Join Date
    May 2003
    Location
    CA
    Posts
    370
    What does dbmmanage do exacty and how does it work?

  7. #6
    Linux User Allblack's Avatar
    Join Date
    May 2003
    Location
    Godzone
    Posts
    416
    I managed to create a user database with like you do with htpasswd. The latter seems to have less parameters available.
    I am on a journey to mastering Linux and I got a bloody long way to go!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •