How to password protect a folder in samba?
I've been trying to figure out for awhile how to password protect just one folder in my samba main directory.
To explain I have a family here that also uses the file server... So there is files on the file server they use too but I want to show my web folder on the samba server too but I don't want anyone but me being able to get into the folder changing or anything, or even viewing it without a password first. How would this be done? |
not a networking question. moved to Linux - Server.
|
Does anyone know the answer to this question?
|
Yea. I do that.
One way is to create a folder, say /home/family and share it twice in Samba, once as "family" and again as "family-ro". Make the first share accessible r/w to yourself and whoever, and the second accessible to everyone r/o. GaHillBilly |
I don't think I quite follow you. Can you elaborate on this?
|
I didn't read your original post well enough. I don't know how to protect one folder INSIDE of an existing r/w share. To do what I wrote, you'd need to create a second folder OUTSIDE the original share. Then you can share this second folder two ways, r/w and r/o, depending on who's trying to access it.
(I'm actually not sure what would happen if you tried to share a folder r/o inside an existing r/w share.) GaHillBilly |
Just a case of setting the right security in your smb.conf for that specific share. I believe if you set "valid users = yourusername" and then configure smbpasswd correctly, then only you would be able to access that specific share.
|
All times are GMT -5. The time now is 05:51 PM. |