I want to share all of my files with all of my equipments in my home,so I want to install an Nas system in my PI.
firstly setup some related softwares:
sudo apt-get install samba samba-common-bin
sudo apt-get install netatalk ##support for AFP
sudo apt-get install avahi-daemon ##Let the PC in my local network can find it
config the smb.conf file:
sudo nano /etc/samba/smb.conf
##at the end of the file
[public]
comment = Public Storage ##comments
path = /mnt/myDriver/Nas ##the path of the share files
read only = no ##authority
create mask = 0777 ##the default authority of the file
directory mask = 0777 ## the default authority of the directory
guest ok = yes ##the default visitor is guest
browseable = yes
then restart it:
smbd restart
but I just can see my share file but can’t visit it,so I should add my user to the smbpasswd:
smbpasswd -a pi
smbpasswd -e pi
also you can add many users.
Then you can use it ~