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.

With Samba, when I share inside my home folder, I only need to right click the folder I want to share (Let's assume it is on the Desktop) and select Sharing Options, then just select the options I want to share it as and that's it, the user, be it in Windows or Linux will be able to see, copy, paste and basically have the correct access that I selected for the share without too much hassle. This is specially true if I allow the guest option when sharing.

enter image description here

If Samba is not installed, it will prompt me to install it and configure it in 2 or 3 clicks when I try to share a folder. After login out and in, I can share any folder inside my Home and be done with it. The user from Windows or Ubuntu can see my PC and the sharing resources with no problems at all. There is no additional steps to configure permissions aside from the 2 or 3 Samba Share options when selecting the Sharing Options in the context menu.

The problems arise when I try to share something outside of my HOME. For example, a mountable unit. Doing it the same way I mentioned before does not work. The external user either can not access the shared resource or can not see it. I have checked to see the permissions and ownership of the mountable unit (They are exactly the same as my home folder), but still Samba does not share anything outside of HOME as easy as something inside of it.

What is the difference then, between sharing something inside and outside of HOME assuming both resources have the same owner and permissions.

share|improve this question
add comment

1 Answer 1

You have to force the incoming connection to look like yourself by adding the following line in /etc/samba/smb.conf, in the last "Share" section (for every external source separately):

force user = (your user name)

Solution is on this link

share|improve this answer
    
This is 50% of the answer. If you can add the reason why the difference between HOME and anything outside of it then I will upvote and accept. –  Luis Alvarado Jun 13 at 14:03
    
I am a beginner here, but I have solved this issue for myself thanks to a similar thread. The link may provide the answer you require: "The answer [on sharing the HOME folder vs data on external drives in NTFS] is the missing rights on the mounted folder. By default a mounted folder gets the equivalent of 700 : drwx------, and the owner - myself. But, I can't seem to change the rights on the external device... they remain 700." -- Is it what you need? –  user293110 Jun 19 at 14:57
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.