May 6, 2021

Samba howto

Samba allows you to store/share Windows files and printers that live on a Linux/BSD system.

Samba howto

First you install the samba server

apt-get install samba samba-client
  (select 'ok' to WORKGROUP)

Now you configure it to share stuff. In this case, we configure it to share a user’s home directory in /home/someuser/. If you need to add a user for this purpose, type ‘adduser whatevername’ and follow prompts.

vi /etc/samba/smb.conf
  browseable = yes
  read only = no
/etc/init.d/samba restart

now add your client:

smbpasswd -a someuser

then test it locally like:

smbclient -L //localhost -U someuser

now you should be able to map a network drive to \\your.linux.i.p\yourusername , then select login with other credentials and hit ‘finish’, it should prompt you with a box where you enter your user credentials, where you’ll have to select “other user” and then type in your password and be able to browse your directory