How to setup Samba on Ubuntu

Simple, just execute

 sudo apt-get install samba

Then open /etc/samba/smb.conf, you could use gedit or Vi to open the file. The smb.conf is divided into six sections:

  1. Global Settings
  2. Debugging/Accounting
  3. Authentication
  4. Printing
  5. File sharing
  6. Misc
  7. Share Definitions

The Global Settings can be used to configure workgroup and wins server name. The most important segments is File Sharing, this segment is used for specifying the folder or device you want to share.

After that, create a username for your samba password. This username and password will be asked each time someone want to open the folder.

The password for samba user is different from the password for the Linux operating system (although you can also make it similar).

Execute command below to create a password for a username.

sudo  smbpasswd -a username

New SMB password: [enter your password]
Retype new SMB password: [verify the password]
Added user username.

Now, restart your samba by executing command below:

sudo /etc/init.d/samba reload

Tag: , , ,

Google
 

One Response to “How to setup Samba on Ubuntu

Leave a Reply

880 views