Solved

Full Access Samba share -- is this possible?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to improve IO of Solaris machine 15 84
Shell script errors 10 115
Unix Question 19 45
Unix Script: Loop over all days of a month 17 88
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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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 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.:

867 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

23 Experts available now in Live!

Get 1:1 Help Now