You would want to edit the /etc/samba/smb.conf
file with the parameters (with sudo perms). Just adjust this to fit your needs at the bottom of the file:
[sharename]
comment = Some Comment Text Here
path = /mnt/sharedfolder/
browseable = yes
read only = no
writable = yes
guest ok = no
create mask = 0644
directory mask = 0700
valid users = username
Depending on your samba configurations, you may need to add a user to the samba users as well with smbpasswd -a username
, that would require "username" to be a user on the local machine first. Also, you can space separate multiple users or even set up a guest one with an administrative user with more permissions.
I have had it work without restarting samba, but it's worth doing..
sudo /etc/init.d/samba restart
To mount this (from windows) you would need to do: \\servername\sharename
wither username
as the user and whatever password you have on the system.
Here is the Samba page for the Users/Security
/etc/samba/smb.conf
.