LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 09-13-2011, 11:45 AM   #1
roopakl
Member
 
Registered: Sep 2011
Posts: 92

Rep: Reputation: Disabled
binding htpasswd username and password with particular IP addresses


Hi..all, I added these below four lines in the document root section in /etc/apache2/sites-available/default file on ubuntu-11.04.
AuthType Basic
AuthName "Authorised Users Only"
AuthUserFile /etc/.auth_users
Require valid-user
Then I added users using "htpasswd -c /etc/.auth_users user1", "htpasswd /etc/.auth_users user2" and so on. Also changed the permission as "chmod 640 /etc/.auth_users" & "chown root.www-data /etc/.auth_users". Then restarted apache. Now the server is prompting for username & password.
Good, but I need some more security for our web server that as I need to bind each and every username(which is stored in /etc/.auth_users file) with particular IP address. Then other person will not be able to browse on other machine even the username and password get hacked. Is it possible to do so?
And is it possible to create groups and grant the permission as read only or read/write. Because we are running wiki pages and by default edit button is enabled. So anyone can edit or delete anything. I don't have much idea about pmwiki. So If I could enable as read only or read/write as per on group permission, we can avoid editing by unauthorized persons. I will be waiting for your kind response.

Regards
Roopa
 
Old 09-13-2011, 01:15 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of http://www.linuxquestions.org/questi...resses-902793/.
 
  


Closed Thread


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
binding htpasswd username and password with specific IP addresses roopakl Linux - Server 2 09-13-2011 11:47 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 13 02-24-2008 08:16 PM
Binding 2 NICs (MAC addresses) to 2 IP Addresses in same Subnet RedHat EL4.0 skhira Linux - Networking 1 02-09-2008 07:17 AM
Binding multiple IP Addresses to same NIC Harlin Linux - Networking 4 10-26-2005 05:10 AM


All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration