> 
> 
> Yes, I have sudo, and I also have the passwords for the other 
> users I need.
How are you, as you said below 'enter' ing the server? Browser, telnet, ssh, ftp, 
etcc.... 
It really depends on that method and if your server admin has things set up to let you 
change
Users. Or if it's even an issue of the user executing it. I foyu just need to log into 
a service as the user you can do that easy enough, example Net::FTP or SOAP::Lite you 
just put the user name and passwords in the right places and viola! You're there.
However you are still not executing that script as the user you are executing it as 
whoever the server admin has running it, which is why you need to ask your server 
admin how to do it.

If you can come up with a command line command that will let you do it the you can 
always do this 

print `sudo -u joemama ./script_of_joe.pl`

man sudo

Basically without much explanation of what you are trying to do there's not much else 
we can do.
Think of it like this.

Have you ever done tech support for an isp?
Say I call you and say "My email doen't work"
You say have you checked you settings?
I say sure have and it's broke, any one else having problems
You say, no 
And I say Well your mail server is definetly messed up because I can't get my mail
So you ask for what error messages I get and I say I don't any
And you say then what symptoms are you having that make you think you can't get mail
And I say because I've had some people send me mail and I havn't received it yet
And you say have they got any of it sent back?
And I say no
And you say....


See what I mean?? Wouldn't it make everyone's life easier if When I called you I said
I seem to not be receiveing email because my friends have sent me some and they havn't 
got it bounced back.
I think my setting are ok, here they are : ...
Any ideas?

Isn't that much better than the 20 questions game?

By the way the reason I couldn't get my mail was that my computer was off! :)
Dan


> 
> HTH
> 
> 
> -----Original Message-----
> From: Dan Muey [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 10, 2003 10:19 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Running script as a different user
> 
> 
> That's atricky one. Do you have sudo or are running 
> apache/ssh/however you are 'enter' ing the server as setuid? 
> You'll probably need to talk to your server admin and ask him 
> how you'd go about that one. 
> More details may helpm though.
> 
> Dan
> 
> > -----Original Message-----
> > From: yargo [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 10, 2003 2:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: Running script as a different user
> > 
> > 
> > Hi all,
> > 
> > 
> > My Env. : Solaris/linux RH 7.x, Perl 5.6.1
> > 
> > 
> > Is there a way to enter another machine as a differen user
> > and run a script? I don't mind even something like 'rsh'.
> > 
> > Thanks!
> > 
> > 
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to