To allow other computers to share files/folders/directories on Raspberry Pi, install samba,
$ apt-get install samba samba-common-bin
To set up a network share folder, add a section at the end of smb.conf,
$ nano /etc/samba/smb.conf
# workgroup = WORKGROUP wins support = yes # [shared_folder] Comment = some description Path = folder_path Browseable = yes Writeable = Yes only guest = no create mask = 0777 directory mask = 0777 Public = yes # write list = pi, root, @lpadmin
The configuration will take effect only when the samba service is restarted.
$ systemctl restart smbd.service
The example above allows complete read/write permissions to the public. Change them according to specific needs for each. Some settings, for instance the commented-out line, do not seem to work with Windows 7. A file located in the shared_folder can be edited/deleted on Windows 7 if its attribute is set as follows:
$ chmod 777 file_to_be_edited_in_windows7
To allow other systems to use the shared folders, use the following commands to add a user:
$ smbpasswd -a user # add user with password
New SMB password: password 
Retype new SMB password: password
To list all samba users:
$ pdbedit -L
To delete a user:
$ pdbedit -x -u user

Profimation Inc. &
  +(886) 2-3322-9780
Total visits: 34271