Raspberrypi : Step-by-Step Configuration as a Samba Server
If you want to use your RPI as a 24x7 on file sharing server, you need to follow the instructions given below to install SAMBA server in you RPI.
Install the samba server using following command
sudo apt-get install samba samba-common-bin
Add new user group for samba using following commad
sudo groupadd sambausers
Restart samba service using following command
Install the samba server using following command
sudo apt-get install samba samba-common-bin
Add new user group for samba using following commad
sudo groupadd sambausers
Add new user and add this user to samba user group
sudo useradd -G sambausers testuser
Set password for this user using following command
sudo passwd testuser
Create directory to setup samba share (create directory in usb drive in my example)
sudo mkdir /media/usb0/share
sudo chown :sambausers /media/usb0/share/
Open samba configuration file and update as shown below
sudo nano /etc/samba/smb.conf
security = user
[share]
comment = RPI Share
path = /media/usb0/share
valid users = @users
force group = sambausers
read only = No
create mask = 0660
directory mask = 0771
Restart samba service using following command
sudo service samba restart
Then you will be able to access the samba share from other devices in the network
Comments
Post a Comment