In order to share folders on Pear Linux 7, we have to install and configure Samba on Pear Linux 7. This short tutorial is going to show you how to install and configure Samba on Pear Linux 7.
First thing to do is installing Samba. You can install Samba via command line or using Pear Software Center. Open Terminal and type this command
sudo apt-get install samba cifs-utils
Now edit the file /etc/samba/smb.conf
sudo nano /etc/samba/smb.conf
Find the Authentication section
####### Authentication #######
# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user
Uncomment the ;security = user so it look like this
security = user
username map = /etc/samba/smbusers
Next, add the user to Samba
sudo smbpasswd -a fitri
Change fitri with your user name.
Create a share folder
sudo mkdir /share
sudo chmod -R 775 /share
Now add the following lines to /etc/samba/smb.conf
[share]
path = /share
writeable = yes
browseable = yes
guest ok = no
Now restart samba server
sudo service smbd restart
That's it. Now every user on Pear Linux can access the /share folder from other computer using their credential.
Comments :
0 comments to “How to build a samba server on Pear Linux 7”
Post a Comment