clesses need permissions to write
Okay, so, I've got a class that needs to write to a local folder. Snag: only that one class should be allowed to do that, no other class, so it's not a question of "just opening everything up"...theres an other "OS" that does that, look where it got them... :D
I've been thinking into these lines: set up a group with one member: that class. Give the members of that group write permissions to the folde.
Just...how does one add a comp to a group?
Thanks for helping a noob out.
Please clarify your question. What exactly do you mean with "classes"? And how does this relate to a "comp(uter?)"?
Okay...it's fairly simpel. I've got a Java RMI solution that exposes stuff to a client. There needs to be a save action to the serve. Eacht user has a folder, one portion of the program has to write these commits as an XML file to the local disk. A sample of the folder hirarchy:
/[per user folder]
where the class resides in /mainserver and needs to write stuff to /users/[userfolder]
the class (program) gets all the info from a user profile, that angle is covered.
what I did was to add the class to a group that has write access, but I still have to experiment with this approach. I aim to let the class inherit the group rights.
Thanks for your interest!
|All times are GMT -5. The time now is 02:40 AM.|