Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Linux Authentication (PAM)
Old 06-29-2004, 04:46 PM Linux Authentication (PAM)
Novice Talker

Posts: 6
Trades: 0
Can someone tell me how to make a directory in a Linux server password protected? What if all scripting is done in PHP? Is there any easy way to set it up so that a log-in screen automatically pops up? Is there any easy way like .htpasswd that pops up the screeen for you?

I know that
/etc/passwd
/etc/shadow
/etc/group
all exists...but where do I go from there? Maybe someone can point me to a good site?

Thanks!
Shaman8933 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-30-2004, 01:19 AM
panreach's Avatar
Novice Talker

Posts: 7
Trades: 0
if you're using linux of some flavor or another
stick this .htaccess file into the directory you're trying to protect

Code:
## .htaccess 
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /some/directory/1.passwords
require valid-user
then add this 1.passwords file to /some/directory/
Code:
## 1.passwords
someuser: (ENCRYPTED PASSWORD)
anotheruser: (ENCRYPTED PASSWORD)
to generate the ENCRYPTED PASSWORD go here:
http://www.kxs.net/support/htaccess_pw.html
__________________

Please login or register to view this content. Registration is FREE
panreach is offline
Reply With Quote
View Public Profile Visit panreach's homepage!
 
Old 06-30-2004, 04:51 PM
Novice Talker

Posts: 6
Trades: 0
Does that totally ignore the /etc/ password and user information that is currently being used? or is the directory that you're suppose to indicate the one that is /etc/passwd ?
Shaman8933 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Linux Authentication (PAM)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11152 seconds with 12 queries