Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am new here and I just setup my first Ubuntu samba server and testing it now...

Now I have a question about Samba to ask:

We have a situation like this:

A share projects for everybody full access to anyone.

There is a subdirectory under share projects/home/samba/share/projects/projectX. I want restrict the access to this subdirectory to a group manager only. Anonymous users not listed in manager group should not able to access the subdirectory.

I tried to change permissions and it seems doesn't work. It looks like the permission is always inherit from the upper level projects share.

So could someone give me a help to solve my problem? Thanks a lot.

share|improve this question
    
Did you try chown user:group foldername? Example: chown :manager /home/samba/share/projects/projectX –  ChrisR. Apr 7 at 10:48
    
Yes I did, but doing that my users were unable to access the folder from their Windows PC. Windows was showing "You don't have permission to access folder ...../project/projectx. Please help...:( –  user266207 Apr 7 at 10:58
    
That is because they need user accounts that have access to the manager group. It is working as you want. Windows uses anonymous users when accessing shares over smb unless SPECIFICALLY setup not to. You need to add user accounts for the Windows users on the Linux system, add those users to the manager group. They will need to know their user name and password for the system. Then, all they need to do is map the share as a drive and enter their username/password during setup. –  ChrisR. Apr 7 at 11:08
    
Thnx Chris for your help. I'll let you know the update :) –  user266207 Apr 7 at 11:38
    
Hello Chris, I went through your suggestion and it worked. But it seems like the sub-folders are showing up in the main screen as a separate mount point(Not within the main folder) and asks for user id and password. My client don't want that. Plus whenever my client access into that main folder it automatically gets anonymous access to the sub-folder that has been created on the main directory. So I want to know that if I can manage to create a mount point within another mount point on my samba server. Thanks in advance –  user266207 Apr 24 at 19:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.