Enable Samba File-sharing

Quickest way to enable samba file sharing without much of hassles:

Open Terminal and follow the steps:

$ su -
# smbpasswd -a -L
# smbpasswd -e -L

Replace with the username of the account you want to enable Samba access, then

# mkdir /usr/local/samba/lib/usershares
# chgrp sambashares /usr/local/samba/lib/usershares
# chmod 1770 /usr/local/samba/lib/usershares

Then open your /etc/smb.conf file:

# gedit /etc/smb.conf

Find [global] and below it add:

usershare owner only = False
usershare path = /usr/local/samba/lib/usershares
usershare max shares = 10

You can change the value of usershare max shares as per your need

Thats it, now restart the computer or the Samba service and share everything you got šŸ™‚

This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s