Setting Up Samba

Samba is the file-sharing service used by Windows. It can also be accessed using Linux or Mac platforms. Here’s how to set it up:

  1. Add a local user called “user2″, and define their password
  2. useradd user2

  3. Add a Samba user (of matching names) and define a password
  4. smbpasswd -a user2

  5. modify /etc/samba/smb.conf to include shared directories and map Samba guests to a particular local user (user2)
  6. [Global]
    security = user
    guest ok = yes
    guest = user2
    .
    .

    [Shared]
    path = /share/
    read only = no
    .
    .

  7. Restart Samba
  8. /etc/init.d/samba restart