tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <>
Subject Re: running as diff. account
Date Thu, 24 Jul 2003 16:14:29 GMT

You're right, file ownership has nothing to do with run privileges.

Can you clarify what you need?

Is accountB the only account allowed to use rsh?  Or are you saying that 
you want to use rsh to login into a remote host as accountB, but 
accountA will launch rsh?

If the latter, then use the "-l" command-line option to rsh to specify 
the remote host account name to use, just as you would with ssh.


Astrid Wagner wrote:

> Hi,
> Can you detail the second solution a little bit:
> I can create a shell sript with my rsh system command in it and owned by
> accountB but it will still run as accountA when called by a servlet, 
> won't it.
> I am no unix expert, maybe you have an example.
> Thanks
> Astrid
> Ralph Einfeldt wrote:
>> There are a couple of solutions that allow you to achive that.
>> Which solution is best, depends on your requirements.
>> Some solutions that require a wrapper script:
>> - script that calls rsh by super or sudo or something like that
>> - script that is owned by accountB and has the setuid bit set
>>   and calls the rsh command directly
>>> -----Original Message-----
>>> From: Astrid Wagner []
>>> Sent: Thursday, July 24, 2003 3:44 PM
>>> To:
>>> Subject: running as diff. account
>>> E.g All web applications etc. run as "accountA" but my web 
>>> application needs to call a "rsh" command (via native interface) run 
>>> as "accountB".
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message