Find the answer to your Linux question:
Results 1 to 3 of 3
Sort of a noobie Q here, so hopefully it should be easy to anser: On my next website, I want to integrate the UI to the linux OS as much ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Dec 2004
    Location
    Portland, OR
    Posts
    123

    Apache Authentication


    Sort of a noobie Q here, so hopefully it should be easy to anser:

    On my next website, I want to integrate the UI to the linux OS as much as possible. in doing so, i would like to authenticate users against system users.

    As you may know, these username/passwords are generally kept in /etc/passwd and /etc/shadow (Are there other files like this with different encryption methods?)

    How do I write an .htaccess file to authenticate against users in these two files (keeping in mind additional rigor may be necessary for the shadow case)

    Also, how would I authenticate users of groups against the linux system, that is to say, is there a /etc/groups type file that i need to think about?

    Thanks.

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077

  3. #3
    Linux Newbie
    Join Date
    Dec 2004
    Location
    Portland, OR
    Posts
    123
    I tried to do this, and quickly realized that user permissions prevent apache from reading /etc/shadow. On second thought, I am uncomfortable with anyone but root reading this file.

Posting Permissions

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