Solved

Full Access Samba share -- is this possible?

Posted on 2006-06-17
2
1,351 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now