Friday, September 4, 2009

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 <user>
# smbpasswd -e -L <user>

Replace <user> 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 :)

No comments:

Email Updates Of UG

Enter your email address:

Delivered by FeedBurner