LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-07-2009, 09:38 AM   #1
jadacyrus
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
A Unique problem. Has to do with permissions


Ok, Its hard for me to explain this problem in words so I have a bit of a visual aid: http://rjtcpp.com/structure.png

Now this represents the structure of the file system im working with. Each box is a folder. The folder that I want to specifically set permissions for is the orange colored folder. Now note that in this system we are constantly creating new red folder that contain the same purple folders. So I need a way for everytime that a new red folder is created with its sub folders that that specific "orange" folder gets the specific permissions I want. I'm not quite sure how to do this but note that it is used as a samba share and ive read up on simple samba permissions but they dont seem to cover the scope of what I really need. Im not a linux guru but I can understand advanced concepts so if anyone can help me out with my problem id really appreciate it. Thankyou
 
Old 07-07-2009, 10:40 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
How are the directories being created?
 
Old 07-07-2009, 10:47 AM   #3
jadacyrus
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
One of my windows based software programs thats responsible for "opening case" creates the directories. And through samba i have a create mask and a directory mask to take care of the initial permissions for the root directory but not sure how to set permissions explicitly for those specific folders. I really just want only a handful of users to access that "one" folder.
 
Old 07-07-2009, 10:54 AM   #4
vap16oct1984
Member
 
Registered: Jun 2009
Location: INDIA
Distribution: RHEL-5
Posts: 174
Blog Entries: 3

Rep: Reputation: 38
I guess use the setuid and setgid for this king of permission. It help to resolve your issue.

setuid and setgid (short for set user ID upon execution and set group ID upon execution, respectively) are Unix access rights flags that allow users to run an executable with the permissions of the executable's owner or group.

Thanks
 
Old 07-07-2009, 11:04 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
  • In which file system is the Windows program creating your new folders?
  • Does that file system support the kind of permissions you want to establish?
    • If so, why is the creation program not setting the permissions when the folders are created?
    • If not, then how can Samba set (or enforce) any access restriction that are not supported by the file system being accessed?
 
Old 07-07-2009, 11:41 AM   #6
jadacyrus
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Its a NTFS File system. The program is written in VB.NET. I havent looked into if theres a way to set permissions programatically but perhaps that is a good idea. I will see if I can do that.
 
  


Reply



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
Unique LCD problem. meltdown_override Linux - Laptop and Netbook 14 08-05-2006 09:47 PM
a unique msn problem alvi2 Linux - Networking 0 12-01-2005 04:35 AM
Samba - a unique problem cjpsparks Linux - Networking 4 10-02-2003 07:38 PM
help...installation problem..unique kapilmarwah Linux - Software 3 07-25-2003 09:21 AM
unique telnet problem morganwolfe Linux - Networking 4 01-27-2002 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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