Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
when i try to make .htpasswd on suse 9.1 pro it just doen't work. i typed htpasswd -c username .htpasswd, but i got the
message: bash: htpasswd: command not found. even when i'm in the directory in which htpasswd is (/usr/local/apache/bin) it's still a no go.
i then tried the command pico and then fill in a name and password, then saved it as .htpasswd. still nothing.
try ./htpasswd if youre in the directory. If you dont specifiy the full path, only dirs in the $PATH will be checked, not even the current dir. ./command is a full path to a command that just happens to be in the current directory.
ah, great. it worked.
now, i made a .htaccess file, but when i browse to the secured directory, i don't get a loginscreen. just the directory with it's contents.
here's an example:
AuthUserFile /usr/local/apache/bin/.htpasswd
AuthName .Welkom op de beveiligde directory!.
AuthType Basic
<LIMIT GET POST>
require valid-user
</LIMIT>
don't know where i made a mistake. or do i have to configure httpd.conf?
(using apache 1.3.33)
thx again,
basilogics
Last edited by basilogics; 06-29-2005 at 08:37 AM.
Make sure you have htaccess related stuff enabled in the conf, and that the directory in question is subject to the 'AllowOverride All' or similar setting so that the htaccess is actually allowed. That should do the trick. Your .htaccess is alomost identical to the ones I use except ive also set 'AuthGroupFile /dev/null'
thx, but still didn't work.
when i change this section:
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
this message appears in the browser:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
if i put AllowOverride All to None i don't get the message.
check your error_log from that time (/var/log/apache/error_log or some similar path) to see what actually went wrong. The error_log usually gives a pretty good idea on infernal errors.. (:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.