Code: sudoapt-getinstallsambasudoapt-getinstallsmbfs. Let's share the readable and writable folders in the group. Suppose you want to share the folder:/home/ray/share. First, create the folder code: mkdir/home/ray/mongochmod777/home/ray/share backup and edit smb. conf allows network users to access the code: sudocp
Code:
Sudo apt-get install samba
Sudo apt-get install smbfs
Next we will share the readable and writable folders of the group. Assume that the folder you want to share is/home/ray/share.
First create this folder
Code:
Mkdir/home/ray/share
Chmod 777/home/ray/share
Back up and edit smb. conf to allow network users to access
Code:
Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf_backup
Sudo gedit/etc/samba/smb. conf
Search for this line of text
Code:
; Security = user
Replace the following rows
Code:
Security = user
Username map =/etc/samba/smbusers
Add the following lines to the end of the file. Assume that the user allowed to access the file is newsfan. The shared folder name is Share.