Re: run 'some' code as a different user? NET::SSH?



On Tue, May 01, 2007 at 04:48:37AM +0900, John Clisham wrote:
Hello,

I'm working on a ROR app that allows users to track batch computing jobs
submitted to our high performance computing clusters. Anyway, a piece of
functionality to that application is an online file browser to the
server.

Net, I have a need to authenticate users to the Server's OS (I was
thinking using Net:SSH). Then, once authenticated, I'd like to run some
ruby commands as that user vs. the 'non-priviledged user the webserver
is running under.

Is this possible? Any ideas?

The user will authenticate by providing their OS username and password?

Perhaps you could use PTY.spawn and run 'su - username'

.



Relevant Pages

  • Re: PEAP, WinXP, IAS, wrong username
    ... One of the problems could be that the configuration for mschapv2 might not ... Is the winxp machine part of a domain? ... because if turn off "authenticate users on this ... it seems like this username is based on the MAC-adress on the clients NIC. ...
    (microsoft.public.internet.radius)
  • Re: a webservice to authenticate the users against
    ... public bool ValidateUser(string username, string passwordHash); ... [WebService] ... > 4) Can query our internal Active Directory to authenticate our ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Authentication with IE
    ... When I am prompted to log into the site, I enter my username and password. ... It then returns back with the local server as the prefix as opposed to the ... permissions prompts for authenticaton). ... I want the users to authenticate against foo.com, ...
    (microsoft.public.inetserver.iis.security)
  • Re: Dovecot issue
    ... Robert Trembath wrote: ... > The server is setup as a single domain setup. ... be sure that their username is the same exact case as entered into ... authenticate, but report 0 messages, UNLESS you matched the username to ...
    (Fedora)
  • Computer Name vs FQDN Authentication Problem
    ... The domain username (APPUSER) has also been set to allow ... authenticate using windows and impersonate=true. ... is Negotiate. ...
    (microsoft.public.dotnet.security)