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.
Hi all,
I have been trying to set up access to certain users using .htaccess on Fedora core 4. This is what my .htaccess file looks like with chmod to 644, the owner is root, and group is apache.
I am a little confused on what I need to setup in my httpd.conf file. This is how it is listed in my httpd.conf file at the moment:
#
# AccessFileName: The name of the file to look for in each directory
# for access control information. See also the AllowOverride directive.
#
AccessFileName .htaccess
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
#
#
I get the login to pop up when I try to access the area but it does not seem to recognize the password. I set up the .htpasswd like this which is also chmod 644, owner is root, and group is root.
htpasswd -nm username >>.htpasswd
Then I enter in my password.
If anyone can give some advice I would really appreciate it.
Thanks Nathanael.
I have read over those docs again and again and still cannot get it to work correctly. I just don't get it. The login area comes up. It just seems like it will not recognize the password. This is driving me crazy. If anyone else has ideas please post them.
I get the login to pop up when I try to access the area but it does not seem to recognize the password. I set up the .htpasswd like this which is also chmod 644, owner is root, and group is root.
Lol I have tried everyone's suggestions. And I want to say thank you to everyone. But it still is not working. Here is what is in my error log in /var/log/httpd/error_log
[error] [client xx.xxx.xxx.xxx] MySQL ERROR: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[Mon Aug 28 15:34:05 2006] [error] [client xx.xxx.xxx.xxx] MySQL user johndoe not found: /
I am sorry if this sounds like a dumb question but I don't have mysql running. Does it have to be running for .htaccess to work?
No, you donot need mysql running to use .htaccess, BTW, What page were you trying to see when you got the error, seems to me like, the webpage you are accessing uses mysql. Why don't u put a simple html file inside the directory you want to configure .htaccess with, this will simplify the troubleshooting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.