List Info

Thread: Create a new cherrypy instance




Create a new cherrypy instance
user name
2006-11-09 16:18:35
Dear all,

I have to write a web program that permits to an user to
start some
calculations on a cluster. Each user has a home directory,
so the
application has to be able to write in the user home
directory.

I think to write something that do that:
1) from a main cherrypy server instance ask for username and
password
(that is easy)
2) the main starts a new cherrypy server instance with the
privileges
of the user that entered the credential
3) the user continue to work in the new instance
4) at the end, this instance has to be killed

Is it possible? If yes how can I start the new instance?

Otherwise there are other methods more intelligent than me?

Thanks
 Enrico


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

Create a new cherrypy instance
user name
2006-11-09 16:30:01
On 11/9/06, morellik < enrico.morelligmail.com">enrico.morelligmail.com> wrote:

Dear all,

I have to write a web program that permits to an user to start some
calculations on a cluster. Each user has a home directory, so the
application has to be able to write in the user home directory.

I think to write something that do that:
1) from a main cherrypy server instance ask for username and password
(that is easy)

The "asking" part is easy - the confirming part is less so.  That depends on the authentication backend.&nbsp; If it is simply the /etc/passwd file, I think you will run into problems, as most distros use a shadow password setup, which the stdlib module pwd can't handle.&nbsp; Does anyone know if spwd (module for handling shadow password files) made it into Python 2.5?

2) the main starts a new cherrypy server instance with the privileges
of the user that entered the credential

This sounds a bit tricky, but doable.&nbsp; I don't have any advice to offer on the specifics of doing it though.

3) the user continue to work in the new instance
4) at the end, this instance has to be killed

Is it possible? If yes how can I start the new instance?

Otherwise there are other methods more intelligent than me?

Why does the user's homedir need to be involved?&nbsp; Can't the app create private subdirs for each user and write the data there?&nbsp; Then users can fetch whatever data the app is writing from their private subdir?

Christian
http://www.dowski.com



--~--~---------~--~----~------------~-------~--~----~
&nbsp;You received this message because you are subscribed to the Google Groups "cherrypy-users&quot; group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Create a new cherrypy instance
user name
2006-11-10 10:26:19

Christian Wyglendowski wrote:
> On 11/9/06, morellik <enrico.morelligmail.com> wrote:
>
> Why does the user's homedir need to be involved?  Can't
the app create
> private subdirs for each user and write the data there?
 Then users can
> fetch whatever data the app is writing from their
private subdir?
>

Because the data must be private. If I create a directory
owned by the
programs owner,
a normal user cannot access to his data and if the user can,
all users
can.

Enrico


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )