Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

My goal is to end up with a Samba configuration whereby all users on the local network can have read/write access to the shared directory but within the shared directory there is a sub-directory whereby users must have valid credentials to access (or ideally even to browse/see the directory).

Unfortunately I am failing at the very first hurdle!

I have samba installed and running with this section in /etc/samba/smb.conf:

[PublicShare]
writable = yes
path = /home/<me>/Shared/
public = yes
guest ok = yes
guest only = no
guest account = nobody
browsable = yes

I have also added the user nobody with the command sudo adduser nobody sambashare but, although I can reach the directory from my Windows machine, I cannot write to it. I'm not sure where I am going wrong? I should also be clear that the directory itself is marked as 'allow guest' and anyone>>full control from properties accessed in dolphin.

Also - is it feasible to have it be 'visible' or 'discoverable' on the network? (I'm in no way sure of my terminology here but my Windows shared drive can be seen by other machines on the network such as a smart TV and other windows machines but, at present, this samba shared directory cannot be 'seen'. I have to navigate to \\my-machine-name\Shared in order to find it.

When all THATs done I'd love to be able to hide & protect with a password or user credentials only a sub-directory of it!

Any help at all would be gratefully received!

share|improve this question

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.