Saturday, December 20, 2014

Hiding samba share from browse list for unauthorised users

I have been trying to setup my samba shares correctly.




The setup i was looking for was having a couple of shares available publicly, guest accounts are ok and can browse these shares all ok. I have this setup correctly.



The problem comes when setting up a share that only certain users can view, although i have setup a share that will only allow certain users to access. I havent been able to hide this share from guests.



I had a look into the browseable = yes option but this hides it from everyone, including the users that have logged in.



Any idea on how to tackle this?



The setup i have for this private share is follows:




[private]
comment = private share for certain users
path = /media/drive/private
create mask = 0777
directory mask = 0777
writable = yes
public = no
users = admin



I currently have



security = share


But have tried using browseable = no with



security = user

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...