LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-09-2012, 11:40 AM   #1
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Smile clesses need permissions to write


Hey gang!

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...

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.

Thor
 
Old 07-10-2012, 08:18 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please clarify your question. What exactly do you mean with "classes"? And how does this relate to a "comp(uter?)"?
 
Old 07-12-2012, 03:23 PM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766

Original Poster
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
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:

/mainserver
/users
/[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!

Thor
 
  


Reply

Tags
classes, folder, local, permission, write



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No Write Permissions? Masrad Ubuntu 2 06-03-2006 03:48 PM
'write permissions einstien Linux - General 1 03-28-2005 07:47 AM
write permissions ScottCamp Linux - Newbie 0 10-20-2004 09:13 AM
Write permissions kougar Linux - Newbie 13 06-04-2004 11:43 AM
Write permissions nuttiernu Linux - General 4 02-03-2003 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration