in samba there is a default option in the gui to allow user's home directories to be shared out. it's called or named Homes.
The other is named Users but i have it disabled.
Home accounts are under /home/<username>
it works such that if i'm on my windows 7 pc logged in as 'ron' and i go to \\my_linux_machine the windows folder opens and only shows the folder 'ron' which is my home account (/home/ron) .
for other users on my_linux_machine whose account names for example are 'bob' and 'dave', if those guys log in on their windows pc and then go to \\my_linux_machine they only see their respective folders show up. When I log in as ron, i only see the 'ron' folder on the linux machine and not bob or dave.... and bob only sees bob and not ron nor dave, and so on.
for the Homes share, the options are
- browseable = No
- comment = Home Directories
- read only = No
- valid users = %S, %D%w%S
- inherit acls = Yes
now for someone on the network who doesn't have an account on my_linux_machine if they go \\my_linux_machine they see nothing... which is good.
problem is when i go to share out other folders, such as /data.
i typically only do inherit_acls, which is the default when doing a new samba share and it works fine for the most part. if someone who doesn't have an account on \\my_linux_machine goes to it, they will see that folder.... \\my_linux_machine\data... but when they try to go into it they get a pop up asking for username and password. that's good that they CANT get into it... but i would like for them not to see it in the first place if they don't have a valid samba account.
so i tried browseable = no at first, and naturally the folder disappears from view when doing \\my_linux_machine. But if you manually do \\my_linux_machine\data then you can get into it if you have a samba account. i don't want that to happen, i want it to work like the HOMES share. I also tried inserting the valid users option and mimicked the HOMES share but having no luck
I notice with the Homes share that there is no path option. confused.