I'm attempting to set up a NAS using samba on my raspberry pi, running raspbmc. I'm following this tutorial to do so. I've got to the stage of editing the config file:
Our next stop is to turn on user authentication for our samba storage, otherwise anyone with general access to our network (like guest Wi-Fi users) will be able to walk right in. Scroll down in the Samba config file until you get to the section that reads:
However, when I open the config file in nano, I get a completely different file to that shown in the tutorial. Here is my configuration file (I have attempted to modify it myself but I must have done so wrong)
[global] workgroup = WORKGROUP usershare allow guests = yes security=share security=user follow symlinks = yes wide links = no unix extensions = no #lock directory = /var/cache/samba [pi] browsable = yes read only = no #guest ok = yes valid users = pi path = /home/pi #force user = pi (no longer needed) [devices] browsable = yes read only = no #guest ok = yes valid users = pi path = /media force user = root [Backup] comment = Backup folder path = /media/750GB\ Hard\ drive/Backup valid users = @users force group = users create mask = 0660 directory mask = 0771 read only = no
Backup is the folder I want to share. Unless you guys think it's particularly important, I wouldn't mind there being no security on it because my wifi is secure and there's nobody that has access.
Let me know if I've missed anything, I'm fairly new to linux so I'm not 100% what I'm doing yet.
Thanks in advance