--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
---------------------- Forwarded by Peter Pilgrim on 14/03/2001 10:35
---------------------------
From: Peter Pilgrim on 14/03/2001 10:35
To: Joel Dudley <[EMAIL PROTECTED]>
cc:
Subject: Re: permissions (Document link: Peter Pilgrim)
You can have a look at my Java UNIX extension API
http://www.xenonsoft.demon.co.uk/products/javaunix/
to handle the permissions. There is also setuid call in this API
but I would not rely on it because of the Java threading models
on Linux with respond to Green Thread and Native Thread. You
could run a JVM as Root and then setuid, but it might affect
just one thread or depending on your thread model change all
threads in the process!
(Jurgen K. can eloberate here HINT, HINT )
--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
---------------------------------------- Message History
----------------------------------------
From: Joel Dudley <[EMAIL PROTECTED]> on 13/03/2001 13:24 MST
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: permissions
Hello All,
Here is the situation. There is an jvm on a linux fileserver. There is
another app that is going to connect to this jvm (all RMI) and using java IO
to create directories and files. Now one user will create his own
directories and will eventually disconnect. Another user will connect with
another instantace of the external app and use the same JVM to create
directories and files of his own and obviously we want the permissions to
match the users for security reasons. Now if the jvm is started by user X do
all teh files created by the JVM with java io have the permissions of user
X? What they are doing now is using novell which has some user and
permission classes that lets them set user and file premissions. I
suggested creating a JNI wrapper for some basic unix functions but then I
thought that the JVM would always run as root which is bad. We could start
the jvm up under a different user every time that someone connects with the
external app but that is not very efficient. I simply don't know how to do
this on linux. Any help you may offer is greately appreciated and will
result in many linux servers being put into place. thanks for taking the
time to reed my post.
Joel Dudley
Unix System Administrator
DevelopOnline.com
----------------------------------------
"For the scientist who has lived by his faith in the power of reason, the
story ends like a bad dream. He has scaled the mountains of ignorance; he is
about to conquer the highest peak; as he pulls himself over the final rock,
he is greeted by a band of theologians who have been sitting there for
centuries."
- Dr. Robert Jastrow, Founder Goddart Space Flight Institute
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorised copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]