I can see the folders from this ubuntu machine, another ubuntu machine, 2 windows 8, and 1 windows xp machine. However when I click on the folder I get the following error:

"Failed to mount Windows share: Permission denied"

Can someone please let me know what I am doing wrong here. Yes these are guest shares. I don't need them secured I just need access to these folders from other locations.

The permissions on the directories themselves are root:root 777 on one and hroberts89436:hroberts89436 777 on the other. all of the folders and files inside permissions are hroberts89436:hroberts89436 700

Re: Samba Share help

Take a look at the permissions of the parent folder of your mount points:

Code:

ls -dl /media/hroberts89436

It will come back with something that makes no sense:

drwxr-x---+ 3 root root 4096 Mar 31 07:03 /media/hroberts89436

It appears at first glance that not even hroberts89436 has access to the folder until you notice the "+" at the end. That indicates an ACL is controlling permissions. So find out what the Access Control List permissions are on that folder:

Code:

getfacl -t /media/hroberts89436

You should see that aside from root the only person gaining access to that folder and anything beyond it is hroberts89436. Since the remote user is not hroberts89436 you will get a "Failed to mount Windows share: Permission denied" error.

**** That directory and it's permissions are created and controlled by the system automatically so the simplest thing to do in this case since all your shares allow guest access is to make the guest user appear to be hroberts89436 - for those shares. For example:

Re: Samba Share help

Thank you very much

I fixed my mount points. Thats better. didn't like it the other way anyways. I used the force user option on my calibre share. that works now, but the other share does not work. Instead of using the force user option could you tell me what the proper way to do things would be for these. This im sure will help me with my LPIC Level 1 exam as well.

Re: Samba Share help

*** I don't know what "the other share does not work" means.

*** I don't know what the word "proper" means in this context but given the requirements:

The permissions on the directories themselves are root:root 777 on one and hroberts89436:hroberts89436 777 on the other. all of the folders and files inside permissions are hroberts89436:hroberts89436 700

And anonymous guest write access choices are limited and they both entail the guest appearing to be hroberts89436. You can do this in your share definitions explicitly:

Code:

force user = hroberts89436

Or implicitly:

Code:

guest ok = no
valid users = hroberts89436

The latter would require all your clients to pass your credentials to access your share and it's contents.

Re: Samba Share help

Anything is possible if you dig deep enough.

If the goal is to maintain a credetial-less guest share you can go

from one extreme: Rely on the default samba guest user account and set ownership of the shared folder and everything in it to that guest user. You will have to uninstall libpam-smbpass , remove any users you've added to the samba password database, never ever create a share that requires credntials, and make sure all files added to that share are through Samba.

To the other extreme: Use bindfs to take absolute control of the shared folders permissions such that anyone accessing the shared folder will have access to everything in the shared folder. At that point no one can change permissions. Not you. Not Samba. Not even root.