Solved

Full Access Samba share -- is this possible?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to handle awk return value 6 70
ftpcommand 2 67
aix tls version 6 422
Solaris 10.  Nmap installation fails 2 71
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

838 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