Solved

Full Access Samba share -- is this possible?

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

770 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