Installing Samba and
Configuring "smb.conf" File
At this point, there is not much to look at since Debian was installed without a desktop environment (no graphical user interface). Everything will be done in a command line interface, so get ready to start typing some commands.
Step One:
Login in as root.
Enter your password.
You will see "#" prompt.
Step Two:
Install Samba by typing the following:
apt-get install samba samba-client
This will install samba onto the Debian server.
This will install samba onto the Debian server.
Step Three:
Configure the smb.conf file.
Before editing this file, let us make a copy of the original smb.conf file and name it smb.conf.back just in case we need to refer back to it from its original state.
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
Now use nano to edit the smb.conf file.
nano /etc/samba/smb.conf
Go to the end of the file and insert the following lines:
[share]
comment = Debian File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
Save the file and exit nano editor.
Step Four:
Create folder on Debian server where files will be stored and assign ownership.
mkdir -p /srv/samba/share
chown nobody.nogroup /srv/samba/share
Before editing this file, let us make a copy of the original smb.conf file and name it smb.conf.back just in case we need to refer back to it from its original state.
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
Now use nano to edit the smb.conf file.
nano /etc/samba/smb.conf
Go to the end of the file and insert the following lines:
[share]
comment = Debian File Server Share
path = /srv/samba/share
browsable = yes
guest ok = yes
read only = no
create mask = 0755
Save the file and exit nano editor.
Step Four:
Create folder on Debian server where files will be stored and assign ownership.
mkdir -p /srv/samba/share
chown nobody.nogroup /srv/samba/share
No comments:
Post a Comment