New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

User Restricted Area on Website using Linux User Credentials

Got problems with Bubba? Then this forum is for you.
Locked
GaryL
Posts: 87
Joined: 04 Sep 2007, 17:40
Location: Northern Ireland

User Restricted Area on Website using Linux User Credentials

Post by GaryL »

Hi all

I would like to have a password protected area on my website using Bubba's user credentials. Can this easily done?

Many Thanks
Gary
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

Hi

don't get why you would want to couple your bubba user to your website.

to add a private section to your website,
the most easy and practical is to use .htaccess file

http://httpd.apache.org/docs/2.0/howto/auth.html
http://httpd.apache.org/docs/2.0/howto/htaccess.html

or use php & mysql
i use phpfusion to power my website.

cheers
Eek
GaryL
Posts: 87
Joined: 04 Sep 2007, 17:40
Location: Northern Ireland

Post by GaryL »

hiya

I only use my bubba for personal use, share photos etc with family and friends. So there are only a few users altogether. All whom I trust and have granted have access to web-admin.

But I would also like these users to have access to a password protected area on my website, to share personal photos etc, or even just a few web pages that I don’t want visible to the public.

The main reasons why I would like to use Bubba’s users is simply because these are strictly the users I want to limit access too. And it would also require less work in regards to user set-up and maintenance; from my eyes it would just be a lot easier and maintainable.
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

Hi

You mean they all login using the admin user?
if so, you could create new users and they could use that account to login to the web-admin.

But i would recommend you to use a different method.
For instance use a wiki site or a portal site.
That is much nicer, easier and more secure.
And it is very easy to set-up and maintain.

You can for example test-drive php-fusion:
http://www.opensourcecms.com/index.php? ... iew&id=464

cheers
Eek

PS. I also have the web-site just for friends and family
JohanJ
Posts: 32
Joined: 21 Sep 2007, 09:15

Post by JohanJ »

so if i download PHP-Fusion 6.01.13

What must i do with it ?
do i have to install more than that to make it to work ?
is it only to put it in web directory ?
sorry for all stupid questions but im new to linux.
GaryL
Posts: 87
Joined: 04 Sep 2007, 17:40
Location: Northern Ireland

Post by GaryL »

No, they all have their own user accounts to access bubba's web-admin.
I just want the exact same users to have access to a protected area of my website using the same user credentials as they have to access bubba's web-admin.

It would be a simpler and lighter solution than using a CMS. And users will only need to be set-up the once. Besides what i plan will be pretty basic, no need for a CMS of any sort.

Basically I want to set up a directory called user-area that will be like so mywebsite.com/user-area/ that when you navigate to, it'll present you with a login screen, similar to that of the web-admin. Where all my bubba users can sign in and access this protected area.
Eek
Posts: 372
Joined: 23 Dec 2007, 03:03
Location: the Netherlands

Post by Eek »

Got it.

I think you can just reuse the php code of the bubba's web-admin page and use it to create your own user-area site.

Or create the user-area directory in your html directory and put a .htaccess file for authentication in it.
so if i download PHP-Fusion 6.01.13
What must i do with it ?
I will create a how-to ... soon ... :)
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

HI GaryL,

I think you should look into the package libapache2-mod-auth-pam and htaccess. http://pam.sourceforge.net/mod_auth_pam/ Or possibly php4-auth-pam to avoid the ugly basic authentication popup.

/Tor
Co-founder OpenProducts and Ex Excito Developer
GaryL
Posts: 87
Joined: 04 Sep 2007, 17:40
Location: Northern Ireland

Post by GaryL »

thanks guys

i know very little when i comes to php, so libapache2-mod-auth-pam seems to be the easiest for me.

heres a few links i found:

http://www.linux.com/base/ldp/howto/Use ... /x316.html
http://muyiwataiwo.com/main/book_page/c ... entication

shall have a crack at it tonight
Locked