Solved

Full Access Samba share -- is this possible?

Posted on 2006-06-17
2
1,359 Views
Last Modified: 2008-02-26
Basically I would like a share that I can read and write to any dir in /home

I had a share in /home/contact that worked  well - I had no trouble reading and writing.
But I'm going to have multiple web sites - so different users home dir.
ie - /home/lori
/home/mike

can this be done - I'd like to be able to work on files directly.  Security is not an issue - this is just a local testing server.
0
Comment
Question by:Tigger996
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Phreonx earned 500 total points
ID: 16930429
Hello,
if I understood your question right, you need to "jail" domain users in their home directories which are subdirectories of /home while you, want to have full rw access to the entire /home folder. In order to enable full rw access to users belonging to a specific domain you need to "translate" that domain to a group. In other words, you will have to create separate user groups representing each domain and then, assign users to each group. Additionally and since security is not an issue, all you need to do in order for you to have full access to each user's /home/subdirectory is to create a share for /home and browse as root. Here's the steps:

Step 1:
 Create user groups

Step 2:                                        
 Assign users to each group
[Unfortunately you don't provide us with the result of the uname -a command so I cannot be more specific as to which commands you should enter in order to create groups and assign users to them]

Step 3:
 Create Samba shares that can be read or written to only by users belonging to a specific group [i.e. domain in your case]. I will provide an example just for a single domain but the procedure to add as many as you wish is the same.

[Domain1.co.uk]
      comment = Private Folder
      path = /home/Domains/Domain1.co.uk
      public = no
      writeable = yes
      valid users = @Domain1UserGroup
      write list = @Domain1UserGroup
      directory mask = 0770      
      create mask = 0770

Step 4:
 Add your /home directory in Samba's configuration file.

[home]
        comment = Home directory
        path = /home
        read only = no
        guest ok = yes

Hope I helped ;)
0
 

Author Comment

by:Tigger996
ID: 17147986
What I ended up doing is just making my whole home dir 777.  Simple.  Doesn't show me much about setting up samba, but it works.

I'll give you points just cause you tried to help me. :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question