Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-07-2009, 09:38 AM   #1
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:

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
Registered: Jun 2003
Posts: 481

Rep: Reputation: 48
How are the directories being created?
Old 07-07-2009, 10:47 AM   #3
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
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.

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

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
  • 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
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.


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
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 > Forums > Linux Forums > Linux - Server

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

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