How to authnticate and use contents from ${HOME}

How to authnticate and use contents from ${HOME}

am 05.07.2009 20:22:00 von schneider.chantale

Hello,

My name ich Chantale, I am 15years old and in a german Lycee. I like to stu=
dy Informatic in two years and now try to code my first applications. I am =
new to php and like to code my own Intranet Web-Interface which should run =
on my FileServer at home.

I have installed suPHP, but it seems to be not the thing I need, because it=
works only on a VHost.

What I need is, that a ${USER} can login and work on her/his ${HOME}.

How can I archive this?

Thank you
Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to authnticate and use contents from ${HOME}

am 06.07.2009 15:14:14 von Phpster

Try xamp or one of the preconfigured packages

bastien

On Sunday, July 5, 2009, wrote:
> Hello,
>
> My name ich Chantale, I am 15years old and in a german Lycee. I like to study Informatic in two years and now try to code my first applications. I am new to php and like to code my own Intranet Web-Interface which should run on my FileServer at home.
>
> I have installed suPHP, but it seems to be not the thing I need, because it works only on a VHost.
>
> What I need is, that a ${USER} can login and work on her/his ${HOME}.
>
> How can I archive this?
>
> Thank you
> Chantale
>
>
>
>
>
>
>
> #adBox3 {display:none;}
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to authnticate and use contents from ${HOME}

am 06.07.2009 23:45:45 von Isaac Dover

--000e0cd2536ca9cc9e046e106d57
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi Chantale, as Bastien mentioned, a preconfigured package might be the best
way to go. Wikipedia has more information:

http://en.wikipedia.org/wiki/List_of_LAMP_Packages

What are you wanting to build in your interface?

- Isaac

On Mon, Jul 6, 2009 at 9:14 AM, Bastien Koert wrote:

> Try xamp or one of the preconfigured packages
>
> bastien
>
> On Sunday, July 5, 2009, wrote:
> > Hello,
> >
> > My name ich Chantale, I am 15years old and in a german Lycee. I like to
> study Informatic in two years and now try to code my first applications. I
> am new to php and like to code my own Intranet Web-Interface which should
> run on my FileServer at home.
> >
> > I have installed suPHP, but it seems to be not the thing I need, because
> it works only on a VHost.
> >
> > What I need is, that a ${USER} can login and work on her/his ${HOME}.
> >
> > How can I archive this?
> >
> > Thank you
> > Chantale
> >
> >
> >
> >
> >
> >
> >
> > #adBox3 {display:none;}
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
>
> Bastien
>
> Cat, the other other white meat
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--000e0cd2536ca9cc9e046e106d57--

Re: How to authnticate and use contents from ${HOME}

am 07.07.2009 18:40:12 von ro0ot.w00t

--0015174c1984c613ca046e2046b9
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

2009/7/6 Isaac Dover

> Hi Chantale, as Bastien mentioned, a preconfigured package might be the
> best
> way to go. Wikipedia has more information:
>
> http://en.wikipedia.org/wiki/List_of_LAMP_Packages
>
> What are you wanting to build in your interface?
>
> - Isaac
>
> On Mon, Jul 6, 2009 at 9:14 AM, Bastien Koert wrote:
>
> > Try xamp or one of the preconfigured packages
> >
> > bastien
> >
> > On Sunday, July 5, 2009, wrote:
> > > Hello,
> > >
> > > My name ich Chantale, I am 15years old and in a german Lycee. I like to
> > study Informatic in two years and now try to code my first applications.
> I
> > am new to php and like to code my own Intranet Web-Interface which should
> > run on my FileServer at home.
> > >
> > > I have installed suPHP, but it seems to be not the thing I need,
> because
> > it works only on a VHost.
> > >
> > > What I need is, that a ${USER} can login and work on her/his ${HOME}.
> > >
> > > How can I archive this?
> > >
> > > Thank you
> > > Chantale
> > >
> > >
>



Installing LAMP is not a good idea for productive servers. Always stick with
the Packages of your distribution to get all upgrades.
Activating a module isn't hard at all, so... there's not really a need for
packages like "LAMP" on a unix-like OS.
The point in not using such Packages like LAMP on a system which isn't
productive is learning to set up a productive server. You decide.

mod_auth_pam might be a way fo accomplish what you want.

Just my two cent.

--0015174c1984c613ca046e2046b9--

Re: Re: How to authnticate and use contents from ${HOME}

am 08.07.2009 03:58:58 von Carl Furst

PHP may not be the thing to do this.. because it sounds like you want
the users to chroot to ${HOME} which php especially on a vhost does not do.


If you want users to access an nfs or ftp I would use either samba or
vsftp or some other scp/ftp software.
Jan G.B. wrote:
> 2009/7/6 Isaac Dover
>
>
>> Hi Chantale, as Bastien mentioned, a preconfigured package might be the
>> best
>> way to go. Wikipedia has more information:
>>
>> http://en.wikipedia.org/wiki/List_of_LAMP_Packages
>>
>> What are you wanting to build in your interface?
>>
>> - Isaac
>>
>> On Mon, Jul 6, 2009 at 9:14 AM, Bastien Koert wrote:
>>
>>
>>> Try xamp or one of the preconfigured packages
>>>
>>> bastien
>>>
>>> On Sunday, July 5, 2009, wrote:
>>>
>>>> Hello,
>>>>
>>>> My name ich Chantale, I am 15years old and in a german Lycee. I like to
>>>>
>>> study Informatic in two years and now try to code my first applications.
>>>
>> I
>>
>>> am new to php and like to code my own Intranet Web-Interface which should
>>> run on my FileServer at home.
>>>
>>>> I have installed suPHP, but it seems to be not the thing I need,
>>>>
>> because
>>
>>> it works only on a VHost.
>>>
>>>> What I need is, that a ${USER} can login and work on her/his ${HOME}.
>>>>
>>>> How can I archive this?
>>>>
>>>> Thank you
>>>> Chantale
>>>>
>>>>
>>>>
>
>
>
> Installing LAMP is not a good idea for productive servers. Always stick with
> the Packages of your distribution to get all upgrades.
> Activating a module isn't hard at all, so... there's not really a need for
> packages like "LAMP" on a unix-like OS.
> The point in not using such Packages like LAMP on a system which isn't
> productive is learning to set up a productive server. You decide.
>
> mod_auth_pam might be a way fo accomplish what you want.
>
> Just my two cent.
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 16:41:19 von schneider.chantale

What is xamp?

I have my own webinterface and need only to authenticate
the loginuser to let him/her work on the ${HOME}

Thanks
Chantale

----- original Nachricht --------

Betreff: Re: [PHP] How to authnticate and use contents from ${HOME}
Gesendet: Mo 06 Jul 2009 15:14:16 CEST
Von: "Bastien Koert"

> Try xamp or one of the preconfigured packages
>=20
> bastien
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 16:48:16 von schneider.chantale

Hello Isaac,

> http://en.wikipedia.org/wiki/List_of_LAMP_Packages

I am not interested in LDAP and MySQL stuff.
This is overkill for my Intranet Server.

> What are you wanting to build in your interface?

And as I have written, I am learning PHP-Coding.
So ready-to-use-stuff where no one know how it works is no option.

I have installed "php5-auth-pam" and it works already, speak,
I get the correct ExitStatus if one try to authenticate.

But this works only (in conjunction with suPHP) if the script run as
"root" which should not be.

Greetings
Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 16:49:35 von 9el

--001636417bfdba2c82046e6f33ed
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On Sat, Jul 11, 2009 at 9:41 PM, wrote:

> What is xamp?


XAMPP is a preconfigured package for using apache, mysql, php/perl/python on
any platform like linux, mac OS or Windows. Look at www.apachefriends.de

--001636417bfdba2c82046e6f33ed--

Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 16:52:03 von schneider.chantale

Hi Isaac,

> Installing LAMP is not a good idea for productive servers. Always stick
> with
> the Packages of your distribution to get all upgrades.

Ack! I use Debian/Lenny

> Activating a module isn't hard at all, so... there's not really a need fo=
r
> packages like "LAMP" on a unix-like OS.
> The point in not using such Packages like LAMP on a system which isn't
> productive is learning to set up a productive server. You decide.
>=20
> mod_auth_pam might be a way fo accomplish what you want.

Hmmm, I have installed "php5-auth-pam" but it give only an ExitStatus.

So if my script run as "root" :-/ I can check, whether "php5-auth-pam"
say it is OK and then I can act on...

But is there another option as running the script as root?

Thanks
Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 16:57:30 von schneider.chantale

Hello Carl,

> PHP may not be the thing to do this.. because it sounds like you want
> the users to chroot to ${HOME} which php especially on a vhost does not
> do.

It is not a VHost. It is a full blown machine.

with apache2, php5, libapache2-mod-suphp, courier-imap/mta

> If you want users to access an nfs or ftp I would use either samba or

Windows? Me? -- It is already enough, if I have to use it @school.

> vsftp or some other scp/ftp software.

Ehm no, this require a second computer whith such tools installed...

I like to connect the server to my ADSL line and then
access it from everywhere in the world.

Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 16:59:07 von schneider.chantale

Sorry for the second mail, but my first one was rejected and the rest
from the list was gone diirectly into the Spamfolder from Freenet...

Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 17:07:32 von Daniel Brown

On Sat, Jul 11, 2009 at 10:52, wrote:
> Hi Isaac,
>
>> Installing LAMP is not a good idea for productive servers. Always stick
>> with
>> the Packages of your distribution to get all upgrades.

No offense toward the poster of this information, but this is
probably the most ludicrous advice I've seen given in quite some time.

I advise against following it --- not necessarily against using
your distribution's packages, but certainly against *only* using them.
It's a very bad, very useless idea.

--

daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Check out our great hosting and dedicated server deals at
http://twitter.com/pilotpig

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 17:23:08 von HallMarc Websites

First time I've ever seen LAMP described as a language...


__________ Information from ESET Smart Security, version of virus signature
database 4234 (20090711) __________

The message was checked by ESET Smart Security.

http://www.eset.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 17:38:59 von Ashley Sheridan

On Saturday 11 July 2009 15:57:30 schneider.chantale@freenet.de wrote:
> Hello Carl,
>
> > PHP may not be the thing to do this.. because it sounds like you want
> > the users to chroot to ${HOME} which php especially on a vhost does not
> > do.
>
> It is not a VHost. It is a full blown machine.
>
> with apache2, php5, libapache2-mod-suphp, courier-imap/mta
>
> > If you want users to access an nfs or ftp I would use either samba or
>
> Windows? Me? -- It is already enough, if I have to use it @school.
>
> > vsftp or some other scp/ftp software.
>
> Ehm no, this require a second computer whith such tools installed...
>
> I like to connect the server to my ADSL line and then
> access it from everywhere in the world.
>
> Chantale
>
>
>
>
>
>
>
> #adBox3 {display:none;}

This really seems like you would be best off doing this with a simple SSH
connection. I see you use Linux, so that makes things easier. You can
manipulate files as if they were in your local file system with KDE IO slaves
(assuming you use the KDE window manager of course). This pretty much lets
you do what you want. You can even run program on the remote machine with
the -X parameter of the ssh command.

--
Thanks,
Ash
http://www.ashleysheridan.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 17:41:21 von schneider.chantale

Hello Ashley,

> This really seems like you would be best off doing this with a simple SSH=
=20
> connection. I see you use Linux, so that makes things easier.

Ehm, no, I use and the Webinterface.

> You can=20
> manipulate files as if they were in your local file system with KDE IO
> slaves=20
> (assuming you use the KDE window manager of course).

No, only FVWM. :-) KDE/GNOME would kill my machine.

> This pretty much lets=20
> you do what you want. You can even run program on the remote machine with=
=20
> the -X parameter of the ssh command.

SInce I have no Laptop and do not like to take it with me all the time,
my Webinterface must be accessibel from everywhere in the world.

Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 18:00:19 von Ashley Sheridan

On Saturday 11 July 2009 16:41:21 schneider.chantale@freenet.de wrote:
> Hello Ashley,
>
> > This really seems like you would be best off doing this with a simple SSH
> > connection. I see you use Linux, so that makes things easier.
>
> Ehm, no, I use and the Webinterface.
>
> > You can
> > manipulate files as if they were in your local file system with KDE IO
> > slaves
> > (assuming you use the KDE window manager of course).
>
> No, only FVWM. :-) KDE/GNOME would kill my machine.
>
> > This pretty much lets
> > you do what you want. You can even run program on the remote machine with
> > the -X parameter of the ssh command.
>
> SInce I have no Laptop and do not like to take it with me all the time,
> my Webinterface must be accessibel from everywhere in the world.
>
> Chantale
>
>
>
>
>
>
>
> #adBox3 {display:none;}

Have you looked at other online solutions for this? For someone who is just
learning PHP, you could potentially be opening yourself up to all sorts of
hacking by doing what you want to here.

Afaik, you won't be able to do this easily with PHP. What sort of files were
you thinking of being able to edit anyway?

--
Thanks,
Ash
http://www.ashleysheridan.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Re: How to authnticate and use contents from ${HOME}

am 11.07.2009 18:05:22 von schneider.chantale

Hi back,

----- original Nachricht --------
Betreff: Re: [PHP] Re: How to authnticate and use contents from ${HOME}
Gesendet: Sa 11 Jul 2009 17:55:24 CEST
Von: "Ashley Sheridan"

> Have you looked at other online solutions for this? For someone who is ju=
st
>=20
> learning PHP, you could potentially be opening yourself up to all sorts o=
f=20
> hacking by doing what you want to here.

I have to learn how to make it secure... ;-)

> Afaik, you won't be able to do this easily with PHP. What sort of files w=
ere

I am trying to code a whole intranet Interface from Web-Mail to
Online-Filemanager, Callendar and more.

> you thinking of being able to edit anyway?

I do not have to edit anything...

I need only to access the private Diskspace for upload/download files,
creating/removing subdirectories and give permissions WHO can get
stuff from it

If I use suPHP and use root, it works as expected but I think, if someone
authenticate the session must be SUID to that user.

Note: The Web-accesibel folder is NOT ${HOME} but a subdirectory
and the webinterface can not break out... because I have already
secured it. (No ../../ or such will work)

Chantale
=0A#adBox3 {display:none;}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php