LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,189
Blog Entries: 23

Rep: Reputation: 278Reputation: 278Reputation: 278
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: Hanover, Germany
Distribution: Gentoo
Posts: 15,411
Blog Entries: 2

Rep: Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995Reputation: 3995
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
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,189
Blog Entries: 23

Original Poster
Rep: Reputation: 278Reputation: 278Reputation: 278
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 03:36 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration